JsonLayout, KeyValuePair and level transformation

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

JsonLayout, KeyValuePair and level transformation

Surendar Chandra
Is there a way to use the following pattern as the value of a keyvalue pair?

%level{TRACE=7, DEBUG=7, INFO=6, WARN=4, ERROR=3, Fatal=0}

I'm trying to transform the logger level into a integer with JSON.

Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]