Package org.spongepowered.asm.logging
Class LoggerAdapterConsole
java.lang.Object
org.spongepowered.asm.logging.LoggerAdapterAbstract
org.spongepowered.asm.logging.LoggerAdapterConsole
- All Implemented Interfaces:
ILogger
A very basic logger adapter which does not log anything to file and simply
emits formatted log messages to the console printstreams
-
Nested Class Summary
Nested classes/interfaces inherited from class org.spongepowered.asm.logging.LoggerAdapterAbstract
LoggerAdapterAbstract.FormattedMessage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLogs an exception or error that has been caught.getType()Get a short human-readable name of this logger typevoidLogs a message with parameters at the given level.voidLogs a message at the given level including the stack trace of theThrowabletpassed as parameter.setDebugStream(PrintStream debug) Set output stream for DEBUG-level messages<T extends Throwable>
Tthrowing(T t) Logs an exception or error to be thrown.
-
Constructor Details
-
LoggerAdapterConsole
- Parameters:
name- Logger name
-
-
Method Details
-
getType
Description copied from interface:ILoggerGet a short human-readable name of this logger type -
setDebugStream
Set output stream for DEBUG-level messages- Parameters:
debug- New PrintStream for debug messages- Returns:
- fluent
-
catching
Description copied from interface:ILoggerLogs an exception or error that has been caught.- Parameters:
level- The logging Level.t- The Throwable.
-
log
Description copied from interface:ILoggerLogs a message with parameters at the given level.- Parameters:
level- the logging levelmessage- the message to logparams- parameters to the message
-
log
Description copied from interface:ILoggerLogs a message at the given level including the stack trace of theThrowabletpassed as parameter.- Parameters:
level- the logging levelmessage- the message to logt- the exception to log, including its stack trace
-
throwing
Description copied from interface:ILoggerLogs an exception or error to be thrown.- Type Parameters:
T- the Throwable type- Parameters:
t- The Throwable- Returns:
- the Throwable
-