Re: PatternLayout log level

2017-03-28 Thread Paul Mooney
Thank you Matt for the reply - I do now see that it is working as expected, the ol' id10t appeared on my side. results: {"Type":"middleware","Env":"dev","App":"logging-test","LogLevel":2,"Message":" . . . I appreciate your time. On 2017-03-28 13:40 (-0500), Matt Sicker wrote: > The way

Re: PatternLayout log level

2017-03-28 Thread Matt Sicker
The way you did it with %p{ERROR=1, WARN=2, ...} looks right. If it's not substituting properly, then you should probably file a bug. As an aside, I added a JSON escape pattern in the upcoming release which should be useful for your pattern. That will be %enc{...}{JSON}. On 28 March 2017 at 13:33

Re: PatternLayout log level

2017-03-28 Thread Paul Mooney
To make it more clear: I want to, in log4j2.xml configuration, change the output of log level from Info, Debug, Trace, etc. to integers 1, 2, 3, etc. Is this possible within log4j2.xml config? Thank you On 2017-03-24 15:14 (-0500), Paul Mooney wrote: > Hello, I am attempting to follow

PatternLayout log level

2017-03-24 Thread Paul Mooney
Hello, I am attempting to follow the example of setting a level name map in the form of "level=value,level=value". I am trying to map string error levels to int value. The purpose is to replace the string with an int for log level. This is done for the logging api we use that requires an int and