/** * 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)); }
/** * 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)); }
/** * 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)); }
public ZeroDelimitedClassicXmlMultiplexSocketAppender() { super(new ZeroDelimitedWriteByteStrategy()); transformingEncoder =new TransformingEncoder(); transformingEncoder.setLilithEncoder(new LoggingXmlEncoder(false)); setEncoder(transformingEncoder); includeCallerData = true; setPort(DEFAULT_PORT); }
public ZeroDelimitedClassicJsonMultiplexSocketAppender() { super(new ZeroDelimitedWriteByteStrategy()); transformingEncoder =new TransformingEncoder(); transformingEncoder.setLilithEncoder(new LoggingJsonCodec(false)); setEncoder(transformingEncoder); includeCallerData = true; setPort(DEFAULT_PORT); }