Package io.opentelemetry.sdk.logs
Class NoopLogRecordProcessor
- java.lang.Object
-
- io.opentelemetry.sdk.logs.NoopLogRecordProcessor
-
- All Implemented Interfaces:
LogRecordProcessor,java.io.Closeable,java.lang.AutoCloseable
final class NoopLogRecordProcessor extends java.lang.Object implements LogRecordProcessor
-
-
Field Summary
Fields Modifier and Type Field Description private static NoopLogRecordProcessorINSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description privateNoopLogRecordProcessor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static LogRecordProcessorgetInstance()voidonEmit(Context context, ReadWriteLogRecord logRecord)Called when aLoggerLogRecordBuilder.emit()s a log record.java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.opentelemetry.sdk.logs.LogRecordProcessor
close, forceFlush, shutdown
-
-
-
-
Field Detail
-
INSTANCE
private static final NoopLogRecordProcessor INSTANCE
-
-
Method Detail
-
getInstance
static LogRecordProcessor getInstance()
-
onEmit
public void onEmit(Context context, ReadWriteLogRecord logRecord)
Description copied from interface:LogRecordProcessorCalled when aLoggerLogRecordBuilder.emit()s a log record.- Specified by:
onEmitin interfaceLogRecordProcessor- Parameters:
context- the context set viaLogRecordBuilder.setContext(Context), orContext.current()if not explicitly setlogRecord- the log record
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-