mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 06:46:47 +00:00
Set the logging context on the PatternLayout
This commit is contained in:
1 parent
e1c44dd374
commit
54443f7015
1 file changed
+1
+1
@@ -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