Guys I’m wondering if does it possible to write logs to a specific file.
Currently, all my logs of my “part1” and “service1” are being stored in home/logs/Server.log. Does it possible that logs of “part1” start to being saved in home/logs/part1.log and the same as “service1”, home/logs/service1.log
This is to organize our server logs split them fin functionality in different files. How can I do that?
Well not by part/service, but you can divide by application.
You will need to modify the configuration file “logback.xml”
An example to log all INFO/WARN/ERROR logs from an application “com.enonic.app.myapp” to a file “myapp.log” (in addition to the logging into the console and server.log):