Package org.spongepowered.asm.logging
Class LoggerAdapterDefault
java.lang.Object
org.spongepowered.asm.logging.LoggerAdapterAbstract
org.spongepowered.asm.logging.LoggerAdapterDefault
- All Implemented Interfaces:
ILogger
Default logger adapter which sinks log messages but doesn't emit them
anywhere, used only in cases where no logging framework is available and no
logging is desired.
-
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.<T extends Throwable>
Tthrowing(T t) Logs an exception or error to be thrown.
-
Constructor Details
-
LoggerAdapterDefault
-
-
Method Details
-
getType
Description copied from interface:ILoggerGet a short human-readable name of this logger type -
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
-