Class EngineLoggingFactory.PrintStreamLogger
java.lang.Object
com.blackrook.engine.EngineLoggingFactory.PrintStreamLogger
- All Implemented Interfaces:
EngineLoggingFactory.Driver
- Direct Known Subclasses:
EngineLoggingFactory.ConsoleLogger
- Enclosing class:
EngineLoggingFactory
public static class EngineLoggingFactory.PrintStreamLogger
extends Object
implements EngineLoggingFactory.Driver
A standard logger for outputting to a print stream.
- Author:
- Matthew Tropiano
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PrintStreamLogger
Creates a new print stream logger.- Parameters:
out- thePrintStreamto output to.
-
-
Method Details
-
log
public void log(Date time, EngineLoggingFactory.LogLevel level, String source, String message, Throwable throwable) Description copied from interface:EngineLoggingFactory.DriverProcesses a logging message.- Specified by:
login interfaceEngineLoggingFactory.Driver- Parameters:
time- the time that this message was logged.level- the logging level.source- the source of the message.message- the message to object.throwable- the throwable to output along with the message.
-