Log levels in Production

拟墨画扇 提交于 2020-01-06 13:54:05

问题


I need to set logs levels on prod and i do understand that there are different log levels.

Can anyone suggest or recommend what is the right level of logs to be set on Production environment? If i turn the log level to finest it gives me all the logs, which is quite useful for developers to debug, but how do we manage them as there would be tons of logs generated.


回答1:


The *=info is the most detailed recommended for production. Fine, finer, finest are trace level, they will generate lots of messages, and are recommended only for debugging and diagnosing problems. In case of problems you can always increase log level to finest in runtime without server restart.



来源:https://stackoverflow.com/questions/25826340/log-levels-in-production

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!