Moocar/logback-gelf — Issue #7: Setting a pattern
Author: mikeycmccarthy
Created: 2012-02-29 12:14:53+00:00
State: open

Is it possible to set a pattern, and if so, what is the syntax? We've tried to do this

%d{HH:mm:ss.SSS} %contextName [%t] %level %logger{36} - %msg%n

and this:

%d{HH:mm:ss.SSS} %contextName [%t] %level %logger{36} - %msg%n

but with no joy. Basically we're trying to pass through our contextName to make sure it comes out when it is centrally logged. There are a number of apps deployed in the same server so we wanted to distinguish where the log has come from.

Many thanks