Java log Design & Practice (1), java log
During daily development and O & M, you may encounter the following problems:
- Under what conditions do I need to output logs?
- How do I select the log level when it is clear that logs need to be output?
- When it is clear that logs need to be output, what do logs need to be output?
- How can I determine the project in the log when one Tomcat loads multiple projects?
- When multiple Tomcat servers load the same project at the same time, can I use log4j DailyRollingFileAppender and other file class Appender?
- Can I specify the log output directory when multiple Tomcat servers load the same project at the same time?
- What should I do if Chinese characters in the log are garbled?
- Can I dynamically adjust the log level of a class?
- How can I analyze dozens of megabytes of log files per day?
......
I will share with you several articles:
Java log Design & Practice (2)-design