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
Constructors Constructor Description AppenderLogic(pl.tkowalcz.tjahzi.LoggingSystem loggingSystem, String logLevelLabel, Map<String,LabelPrinter> lokiLabels, int maxLogLineSizeBytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(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)voidclose(long timeout, TimeUnit timeUnit)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiConsumer
andThen
-
-
-
-
Constructor Detail
-
AppenderLogic
public AppenderLogic(pl.tkowalcz.tjahzi.LoggingSystem loggingSystem, String logLevelLabel, Map<String,LabelPrinter> lokiLabels, int maxLogLineSizeBytes)
-
-
Method Detail
-
append
public void append(org.apache.logging.log4j.core.Layout<? extends Serializable> layout, org.apache.logging.log4j.core.LogEvent event)
-
close
public void close(long timeout, TimeUnit timeUnit)
-
accept
public void accept(org.apache.logging.log4j.core.LogEvent event, ByteBuffer byteBuffer)- Specified by:
acceptin interfaceBiConsumer<org.apache.logging.log4j.core.LogEvent,ByteBuffer>
-
-