java.lang.Object
dev.mccue.microhttp.systemlogger.SystemLogger
- All Implemented Interfaces:
org.microhttp.Logger
Implementation of
Logger that delegates to a System.Logger.
Defaults to log all messages at System.Logger.Level.TRACE.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates aSystemLoggerthat logs atSystem.Logger.Level.TRACE.SystemLogger(System.Logger logger) Creates aSystemLoggerthat logs atSystem.Logger.Level.TRACE.SystemLogger(System.Logger.Level level) Creates aSystemLoggerthat logs at the providedSystem.Logger.Leveland with aSystem.Loggerthat has the name of this class.SystemLogger(System.Logger logger, System.Logger.Level level) Creates aSystemLoggerthat logs at the providedSystem.Logger.Leveland delegates to the providedSystem.Logger. -
Method Summary
-
Constructor Details
-
SystemLogger
public SystemLogger()Creates aSystemLoggerthat logs atSystem.Logger.Level.TRACE. and with aSystem.Loggerthat has the name of this class. -
SystemLogger
Creates aSystemLoggerthat logs atSystem.Logger.Level.TRACE. and delegates to the providedSystem.Logger. -
SystemLogger
Creates aSystemLoggerthat logs at the providedSystem.Logger.Leveland with aSystem.Loggerthat has the name of this class.- Parameters:
level- The level to log at.
-
SystemLogger
Creates aSystemLoggerthat logs at the providedSystem.Logger.Leveland delegates to the providedSystem.Logger.- Parameters:
logger- The logger to delegate to.level- The level to log at.
-
-
Method Details
-
enabled
public boolean enabled()- Specified by:
enabledin interfaceorg.microhttp.Logger
-
log
public void log(org.microhttp.LogEntry... entries) - Specified by:
login interfaceorg.microhttp.Logger
-
log
- Specified by:
login interfaceorg.microhttp.Logger
-