-
1. Re: Using Log Categories in my Web App
wdfink Nov 13, 2014 9:02 AM (in response to danielcastro)In your application you can simple use a logging framework like log4J, slf4J or JBossLogging. You don't need to add any configuration.
Now you can use the XML configuration or use the CLI during runtime to add the logger setting to your server configuration.
If you use CLI this should be enabled during runtime.
-
2. Re: Using Log Categories in my Web App
danielcastro Nov 13, 2014 9:32 AM (in response to wdfink)Doubts:
- Should the Log Category be declared using console be the same name as my Logger.getLogger("xxxxxx") uses? This is the way I am doing.
- My console.log does not shows a thing. My log4j.properties does not specifies that the appender should use an specii log file.
So, in general lines, it is not working
I changed the declaration of my appenders to write specifically to console.log inside log4j.properties, but I can not change using the wildfly console Log Categories the Log Level in runtime, and this is what I am trying to accomplish.
-
3. Re: Using Log Categories in my Web App
wdfink Nov 14, 2014 3:56 PM (in response to danielcastro)As I said you should delete your log4j configuration from the application and also remote log4j.jar from the lib folder of your deployment.
If you add the logger, yes the catagory is the same as your getLogger(XX), you don't need to specify an appender, the root appender will be used.
Notice that the CONSOLE suppress by default levels >INFO