WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

MyApplication specific logging in WAS 8.5.5 using JUL

  • 1.  MyApplication specific logging in WAS 8.5.5 using JUL

    Posted Fri May 15, 2015 05:14 AM
    Hi Everybody,

        Hope everybody doing great...

        After surfing seriously and with no clues, i am posting my issue here. 
     
        My application require logs specific to itself. In my application i am using java.util.logging and had own logging.proepties file. I have tried to enable but didnt get success.

       Could any one let me know, without touching any existing logs, i want to have a new log file specific to my application logging. Want to know any configuration settings to enable anything in WAS and how to incorporate my logging.propertis to WAS 8.5.5.2

       Let me know your valuable comments. 

    Sample :

    private static java.util.logging.Logger mLogger = java.util.logging.Logger.getLogger("A.B.C.D.class"); 

    logging.properties:

    handlers = java.util.logging.FileHandler
    .level = SEVERE


    java.util.logging.FileHandler.pattern = C:/logs/App.log
    java.util.logging.FileHandler.limit = 5000000
    java.util.logging.FileHandler.count = 5
    java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter

     


     Output: No files created and dont know , Has was considered my configuration or not


     


  • 2.  MyApplication specific logging in WAS 8.5.5 using JUL

    Posted Fri May 15, 2015 09:58 AM
    Hi Naresh,

     Take a look to the next link
     
     Application logging in WebSphere Application Server Community Edition
     http://www.ibm.com/developerworks/websphere/tutorials/0903_madgula/
     
     how to set log4j.configuration system variable in WebSphere 7?
     http://stackoverflow.com/questions/13828582/how-to-set-log4j-configuration-system-variable-in-websphere-7
     
     Hope this helps. Tell us if you need more support
     
     Regards