Package com.snowbound.common.utils
Class StructuredLogger
- java.lang.Object
-
- com.snowbound.common.utils.StructuredLogger
-
public class StructuredLogger extends java.lang.Object
Decorator class for our SLF4J logger.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
StructuredLogger.LogBuilder
-
Constructor Summary
Constructors Constructor Description StructuredLogger(org.slf4j.Logger logger)
-
Method Summary
-
-
-
Method Detail
-
isDebugEnabled
public boolean isDebugEnabled()
-
sanitizeStringArray
public java.lang.String[] sanitizeStringArray(java.lang.String[] messages)
-
errorOccurred
public StructuredLogger.LogBuilder errorOccurred(java.lang.String errorDescriptionAndConsequence)
-
errorOccurredButContinuing
public StructuredLogger.LogBuilder errorOccurredButContinuing(java.lang.String errorDescriptionAndConsequence)
-
errorMayCauseFurtherProblems
public StructuredLogger.LogBuilder errorMayCauseFurtherProblems(java.lang.String errorDescriptionAndConsequence)
-
interruptedAndSafelyBailing
public StructuredLogger.LogBuilder interruptedAndSafelyBailing(java.lang.String errorDescriptionAndConsequence)
-
cacheOperationOccurred
public StructuredLogger.LogBuilder cacheOperationOccurred(java.lang.String logMessage)
-
logDuration
public StructuredLogger.LogBuilder logDuration(java.lang.String descriptionOfAction, long duration)
-
journalNormalOperation
public StructuredLogger.LogBuilder journalNormalOperation(java.lang.String descriptionOfOperation)
-
alertOnConfigurationError
public StructuredLogger.LogBuilder alertOnConfigurationError(java.lang.String message)
-
detailForDebug
public StructuredLogger.LogBuilder detailForDebug(java.lang.String description)
-
importantNormalEvent
public StructuredLogger.LogBuilder importantNormalEvent(java.lang.String eventDescription)
-
configurationMayCauseProblems
public StructuredLogger.LogBuilder configurationMayCauseProblems(java.lang.String warning)
-
-