@Override protected void applicationIdentifierChanged() { transformingEncoder.setApplicationIdentifier(getApplicationIdentifier()); }
@Override protected void uuidChanged() { transformingEncoder.setUUID(getUUID()); }
public ZeroDelimitedClassicXmlMultiplexSocketAppender() { super(new ZeroDelimitedWriteByteStrategy()); transformingEncoder =new TransformingEncoder(); transformingEncoder.setLilithEncoder(new LoggingXmlEncoder(false)); setEncoder(transformingEncoder); includeCallerData = true; setPort(DEFAULT_PORT); }
@SuppressWarnings("WeakerAccess") public ClassicJsonMultiplexSocketAppender(boolean compressing) { super(); usingDefaultPort = true; transformingEncoder = new TransformingEncoder(); setEncoder(transformingEncoder); setCompressing(compressing); includeCallerData = false; }
/** * GZIPs the event if set to true. * * Automatically chooses the correct default port if it was not previously set manually. * * @param compressing if events will be gzipped or not. */ public void setCompressing(boolean compressing) { if(usingDefaultPort) { if(compressing) { setPort(COMPRESSED_DEFAULT_PORT); } else { setPort(UNCOMPRESSED_DEFAULT_PORT); } usingDefaultPort = true; } transformingEncoder.setLilithEncoder(new LoggingEventProtobufCodec(compressing)); }
public ZeroDelimitedClassicJsonMultiplexSocketAppender() { super(new ZeroDelimitedWriteByteStrategy()); transformingEncoder =new TransformingEncoder(); transformingEncoder.setLilithEncoder(new LoggingJsonCodec(false)); setEncoder(transformingEncoder); includeCallerData = true; setPort(DEFAULT_PORT); }
public ClassicMultiplexSocketAppender(boolean compressing) { super(); usingDefaultPort = true; transformingEncoder = new TransformingEncoder(); setEncoder(transformingEncoder); setCompressing(compressing); includeCallerData = false; }
/** * GZIPs the event if set to true. * * Automatically chooses the correct default port if it was not previously set manually. * * @param compressing if events will be gzipped or not. */ public void setCompressing(boolean compressing) { if(usingDefaultPort) { if(compressing) { setPort(COMPRESSED_DEFAULT_PORT); } else { setPort(UNCOMPRESSED_DEFAULT_PORT); } usingDefaultPort = true; } transformingEncoder.setLilithEncoder(new LoggingJsonCodec(compressing)); }
@Override protected void uuidChanged() { transformingEncoder.setUUID(getUUID()); }
@Override protected void applicationIdentifierChanged() { transformingEncoder.setApplicationIdentifier(getApplicationIdentifier()); }
@SuppressWarnings("WeakerAccess") public ClassicXmlMultiplexSocketAppender(boolean compressing) { super(); usingDefaultPort = true; transformingEncoder = new TransformingEncoder(); setEncoder(transformingEncoder); setCompressing(compressing); includeCallerData = false; }
/** * GZIPs the event if set to true. * * Automatically chooses the correct default port if it was not previously set manually. * * @param compressing if events will be gzipped or not. */ public void setCompressing(boolean compressing) { if(usingDefaultPort) { if(compressing) { setPort(COMPRESSED_DEFAULT_PORT); } else { setPort(UNCOMPRESSED_DEFAULT_PORT); } usingDefaultPort = true; } transformingEncoder.setLilithEncoder(new LoggingXmlEncoder(compressing)); }
@Override protected void uuidChanged() { transformingEncoder.setUUID(getUUID()); }
@Override protected void applicationIdentifierChanged() { transformingEncoder.setApplicationIdentifier(getApplicationIdentifier()); }
@Override protected void uuidChanged() { transformingEncoder.setUUID(getUUID()); }
@Override protected void applicationIdentifierChanged() { transformingEncoder.setApplicationIdentifier(getApplicationIdentifier()); }
@Override protected void uuidChanged() { transformingEncoder.setUUID(getUUID()); }
@Override protected void applicationIdentifierChanged() { transformingEncoder.setApplicationIdentifier(getApplicationIdentifier()); }