Class NoopLogRecordProcessor
java.lang.Object
io.opentelemetry.sdk.logs.NoopLogRecordProcessor
- All Implemented Interfaces:
LogRecordProcessor, Closeable, AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static LogRecordProcessorvoidonEmit(Context context, ReadWriteLogRecord logRecord) Called when aLoggerLogRecordBuilder.emit()s a log record.toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface LogRecordProcessor
close, forceFlush, shutdown
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NoopLogRecordProcessor
private NoopLogRecordProcessor()
-
-
Method Details
-
getInstance
-
onEmit
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
-