What level of log is used for input / output method?

What level of log should be used for method output / method input?

The log4j levels follow the following order. DEBUG INFO WARN ERROR FATAL 
+6
source share
2 answers

I always used DEBUG, because it seems that I need this information only when there was a problem, and I needed to debug the application.

+10
source

Tracing is the most detailed level, print any information while it helps you identify problems. Debug is the second detailed level, Info is the third detailed level, in my opinion, it should print something that makes sense to end users, it should hide technical details. ...

So, in your case, the enter / exit method is probably the most detailed information, usually it is pointless for end users, so it is better to use the Trace or Debug level.

In one example, when you start Tomcat, it displays information level information to help you track the status.

+4
source

Source: https://habr.com/ru/post/891372/


All Articles