| Package | Description |
|---|---|
| com.github.structlogging | |
| com.github.structlogging.kafka | |
| com.github.structlogging.slf4j |
| Modifier and Type | Method and Description |
|---|---|
void |
LoggingCallback.audit(LoggingEvent e)
logging of audit related events
|
void |
StructLogger.auditEvent(LoggingEvent e)
log audit event
|
void |
LoggingCallback.debug(LoggingEvent e)
corresponds to DEBUG level of logging
|
void |
StructLogger.debugEvent(LoggingEvent e)
log event on debug level
|
void |
LoggingCallback.error(LoggingEvent e)
corresponds to ERROR level of logging
|
void |
StructLogger.errorEvent(LoggingEvent e)
log event on error level
|
void |
LoggingCallback.info(LoggingEvent e)
corresponds to INFO level of logging
|
void |
StructLogger.infoEvent(LoggingEvent e)
log event on info level
|
void |
LoggingCallback.trace(LoggingEvent e)
corresponds to TRACE level of logging
|
void |
StructLogger.traceEvent(LoggingEvent e)
log event on trace level
|
void |
LoggingCallback.warn(LoggingEvent e)
corresponds to WARN level of logging
|
void |
StructLogger.warnEvent(LoggingEvent e)
log event on warn level
|
| Modifier and Type | Method and Description |
|---|---|
void |
EventTypeAwareKafkaCallback.audit(LoggingEvent e) |
void |
EventTypeAwareKafkaCallback.debug(LoggingEvent e) |
void |
EventTypeAwareKafkaCallback.error(LoggingEvent e) |
void |
EventTypeAwareKafkaCallback.info(LoggingEvent e) |
byte[] |
LoggingEventJsonSerializer.serialize(String s,
LoggingEvent loggingEvent) |
void |
EventTypeAwareKafkaCallback.trace(LoggingEvent e) |
void |
EventTypeAwareKafkaCallback.warn(LoggingEvent e) |
| Constructor and Description |
|---|
EventTypeAwareKafkaCallback(org.apache.kafka.clients.producer.Producer<Long,LoggingEvent> producer)
Constructors kafka logging callback, which sends events to topics same as event types
|
EventTypeAwareKafkaCallback(org.apache.kafka.clients.producer.Producer<Long,LoggingEvent> producer,
java.util.function.Function<String,String> eventTypeToTopicMapping)
Constructs kafka logging callback, which sends events to topics according to eventTypeToTopicMapping
|
| Modifier and Type | Method and Description |
|---|---|
void |
Slf4jLoggingCallback.audit(LoggingEvent e)
This implementation uses INFO level of slf4j and marks these logged messages with AUDIT marker
|
void |
Slf4jLoggingCallback.debug(LoggingEvent e) |
void |
Slf4jLoggingCallback.error(LoggingEvent e) |
void |
Slf4jLoggingCallback.info(LoggingEvent e) |
void |
Slf4jLoggingCallback.trace(LoggingEvent e) |
void |
Slf4jLoggingCallback.warn(LoggingEvent e) |
Copyright © 2018. All rights reserved.