Package pl.tkowalcz.tjahzi.log4j2
Class AppenderLogic
java.lang.Object
pl.tkowalcz.tjahzi.log4j2.AppenderLogic
- All Implemented Interfaces:
BiConsumer<org.apache.logging.log4j.core.LogEvent,ByteBuffer>
public class AppenderLogic
extends Object
implements BiConsumer<org.apache.logging.log4j.core.LogEvent,ByteBuffer>
-
Constructor Summary
ConstructorsConstructorDescriptionAppenderLogic(pl.tkowalcz.tjahzi.LoggingSystem loggingSystem, String logLevelLabel, Map<String, LabelPrinter> lokiLabels, Map<String, LabelPrinter> structuredMetadata, int maxLogLineSizeBytes) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(org.apache.logging.log4j.core.LogEvent event, ByteBuffer byteBuffer) voidappend(org.apache.logging.log4j.core.Layout<? extends Serializable> layout, org.apache.logging.log4j.core.LogEvent event) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiConsumer
andThen
-
Constructor Details
-
AppenderLogic
public AppenderLogic(pl.tkowalcz.tjahzi.LoggingSystem loggingSystem, String logLevelLabel, Map<String, LabelPrinter> lokiLabels, Map<String, LabelPrinter> structuredMetadata, int maxLogLineSizeBytes)
-
-
Method Details
-
append
public void append(org.apache.logging.log4j.core.Layout<? extends Serializable> layout, org.apache.logging.log4j.core.LogEvent event) -
close
-
accept
- Specified by:
acceptin interfaceBiConsumer<org.apache.logging.log4j.core.LogEvent,ByteBuffer>
-