weblogic12c - Java util logging doesn't logs INFO messages even if the level is set to INFO -


java util logging doesn't logs info messages if level set info.

given below properties file:

# properties file configures operation of jdk  # logging facility.  handlers=java.util.logging.filehandler, java.util.logging.consolehandler .level=info  # --- filehandler ---  # override of global logging level  java.util.logging.filehandler.level=info # style of output (simple or xml):  java.util.logging.filehandler.formatter=java.util.logging.simpleformatter java.util.logging.filehandler.append=true ... 

deployed application in weblogic server.the application not logging info messages, making severe & warning messages.

using code in loop handlers:

 logger.getglobal().getparent().gethandlers()[i].tostring()+ " : "+ logger.getglobal().getparent().gethandlers()[i].getlevel()   

these handlers used levels:

oracle.core.ojdl.logging.odlhandler :  oracle.core.ojdl.weblogic.domainloghandler :  warning oracle.core.ojdl.logging.consolehandler:  807 java.util.logging.filehandler :  finest java.util.logging.consolehandler : finest 

found solution : added application handler ;registered handlers co.in.testapp.process , child loggers below:

co.in.testapp.testprocess.handlers = java.util.logging.filehandler co.in.testapp.testprocess.useparenthandlers = false co.in.testapp.testprocess.level=finest 

after logs reported properly.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -