Log4j configuration : file or console?



I want to integrate the log4j in a wab application, but the problem is that I have to check if the application is executed on which operation system and then if it's a "Windows" put the logs in a file and if it's "Unix " show the logs on a console.


so I want to know if someone know how to do this ? I mean to check if it's windows or Unix ? because all the configuration for the log4j is in (Xml or propreties file )


Thank you for ur interest .


No comments:

Post a Comment