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.
- 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.
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