1 Reply Latest reply on Jun 26, 2012 10:49 PM by Bernd Eckenfels

    log manager formatter: system properties access

    Bernd Eckenfels Novice

      Hello,

       

      looking at the logmanager formatter code I dont see a way to format system properties into the log-messages. I would like to have (physical)hostname, (host-manager)logicalhostname, processID (PID) and server name in some of the logfiles. Since those are global properties I cant put them in the MDC/NDC. I wonder if there is a way that the configuration loader replaces them when parsing the domain.xml subsystems?

       

      Currently I have a custom loghandler, but I would like to get rid of it (especially since it needs to parse the formatted strings).

       

      One option would be to add custom formatter steps, is there a way to do that (based on a pattern add/change specific steps).

       

      Greetings

      Bernd