Goodmorning everyone. Can I have print methods in the entity? or is it conceptually wrong?
Asked
Active
Viewed 19 times
1 Answers
0
Sharing few points, I hope it might help you.
- Use of print anywhere in project is wrong. If needed, use logger instead.
- What information you are logging, if it is confidential information then it is very wrong. For example - crediatial, name, password etc..
- If you want to log for debugging or for catching exception you must log with appropriate log level with proper message.

arpitj938
- 76
- 3