简体   繁体   中英

how can i use and manage logs [Log4j] java?


I'm new in Framework's logging and i need your advice.
I develop a java EE application and i want to integrate logs in it, I see that I can use RollingFileAppender to save my logs in files. But what i want to do is to manage those logs, filter them by categories and create a statistics. I know that if i use JDBCAppender i can do such things but this solution is not recommended because of using a lot of resources . any recommended solution ?

H-Raf

For Logging I would recommend to use SLF4j and try the new Log4J 2 binding .

To analyse log files from several nodes there are tools such as Splunk (commercial) or GrayLog (Open Source with commercial support).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM