mirror of
https://github.com/signalapp/Signal-Server
synced 2026-02-15 13:05:44 +00:00
Set the logging context on the PatternLayout
This commit is contained in:
@@ -101,6 +101,7 @@ public class LogstashTcpSocketAppenderFactory extends AbstractAppenderFactory<IL
|
||||
final LayoutWrappingEncoder<ILoggingEvent> prefix = new LayoutWrappingEncoder<>();
|
||||
final PatternLayout layout = new PatternLayout();
|
||||
layout.setPattern(String.format("%s ", apiKey.value()));
|
||||
layout.setContext(context);
|
||||
prefix.setLayout(layout);
|
||||
encoder.setPrefix(prefix);
|
||||
appender.setEncoder(encoder);
|
||||
|
||||
Reference in New Issue
Block a user