com.raynigon.ecs.logging.access.EcsAccessEncoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ecs-logging-access Show documentation
Show all versions of ecs-logging-access Show documentation
The ecs-logging-access is a part of the unit-api
The newest version!
package com.raynigon.ecs.logging.access;
import ch.qos.logback.access.common.spi.IAccessEvent;
import ch.qos.logback.core.encoder.EncoderBase;
import com.raynigon.ecs.logging.EcsEncoder;
import com.raynigon.ecs.logging.access.converter.EcsAccessConverter;
import com.raynigon.ecs.logging.access.event.EcsAccessLogEvent;
public class EcsAccessEncoder extends EncoderBase {
private final EcsEncoder encoder = new EcsEncoder<>(new EcsAccessConverter());
@Override
public void start() {
super.start();
encoder.setupLogback(getContext());
}
@Override
public byte[] encode(IAccessEvent event) {
return encoder.encode(event);
}
@Override
public byte[] headerBytes() {
return new byte[0];
}
@Override
public byte[] footerBytes() {
return new byte[0];
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy