Package com.codingchili.core.testing
Class LoggerMock
java.lang.Object
java.util.logging.Handler
com.codingchili.core.logging.AbstractLogger
com.codingchili.core.logging.ConsoleLogger
com.codingchili.core.testing.LoggerMock
- All Implemented Interfaces:
JsonLogger
,Logger
Logger mock to capture console output for testing purposes.
-
Field Summary
Fields inherited from class com.codingchili.core.logging.AbstractLogger
aClass, context, logger, metadata
-
Constructor Summary
-
Method Summary
Methods inherited from class com.codingchili.core.logging.ConsoleLogger
close, consumeLevel, getFilteredKeys, log, parseJsonLog, setEnabled
Methods inherited from class com.codingchili.core.logging.AbstractLogger
event, event, flush, onAlreadyInitialized, onCacheCleared, onConfigurationDefaultsLoaded, onError, onFileLoaded, onFileLoadError, onFileSaved, onFileSaveError, onHandlerMissing, onInvalidConfigurable, onListenerStarted, onListenerStopped, onMetricsSnapshot, onSecurityDependencyMissing, onServiceFailed, onServiceStarted, onServiceStopped, onTimerSourceChanged, publish, removeMetadata, setMetadata, setMetadataValue
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
-
Constructor Details
-
LoggerMock
-
-
Method Details
-
log
- Overrides:
log
in classAbstractLogger
-
log
- Overrides:
log
in classAbstractLogger
-