Package org.spongepowered.asm.logging
Class LoggerAdapterJava
java.lang.Object
org.spongepowered.asm.logging.LoggerAdapterAbstract
org.spongepowered.asm.logging.LoggerAdapterJava
- All Implemented Interfaces:
ILogger
Logger adapter which uses the built-in Java logging functionality to emit
logging messages.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.spongepowered.asm.logging.LoggerAdapterAbstract
LoggerAdapterAbstract.FormattedMessage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Logs an exception or error that has been caught.void
Logs a message with parameters at theDEBUG
level.void
void
Logs a message with parameters at theERROR
levelvoid
void
Logs a message with parameters at theFATAL
level.void
getType()
Get a short human-readable name of this logger typevoid
Logs a message with parameters at theINFO
level.void
void
Logs a message with parameters at the given level.void
Logs a message at the given level including the stack trace of theThrowable
t
passed as parameter.<T extends Throwable>
Tthrowing
(T t) Logs an exception or error to be thrown.void
Logs a message with parameters at theTRACE
level.void
void
Logs a message with parameters at theWARN
level.void
Methods inherited from class org.spongepowered.asm.logging.LoggerAdapterAbstract
catching, getId
-
Constructor Details
-
LoggerAdapterJava
-
-
Method Details
-
getType
Description copied from interface:ILogger
Get a short human-readable name of this logger type -
catching
Description copied from interface:ILogger
Logs an exception or error that has been caught.- Parameters:
level
- The logging Level.t
- The Throwable.
-
debug
Description copied from interface:ILogger
Logs a message with parameters at theDEBUG
level.- Specified by:
debug
in interfaceILogger
- Overrides:
debug
in classLoggerAdapterAbstract
- Parameters:
message
- the message to logparams
- parameters to the message
-
debug
Description copied from interface:ILogger
- Specified by:
debug
in interfaceILogger
- Overrides:
debug
in classLoggerAdapterAbstract
- Parameters:
message
- the message to logt
- the exception to log, including its stack trace
-
error
Description copied from interface:ILogger
Logs a message with parameters at theERROR
level- Specified by:
error
in interfaceILogger
- Overrides:
error
in classLoggerAdapterAbstract
- Parameters:
message
- the message to logparams
- parameters to the message
-
error
Description copied from interface:ILogger
- Specified by:
error
in interfaceILogger
- Overrides:
error
in classLoggerAdapterAbstract
- Parameters:
message
- the message object to logt
- the exception to log, including its stack trace
-
fatal
Description copied from interface:ILogger
Logs a message with parameters at theFATAL
level.- Specified by:
fatal
in interfaceILogger
- Overrides:
fatal
in classLoggerAdapterAbstract
- Parameters:
message
- the message to logparams
- parameters to the message
-
fatal
Description copied from interface:ILogger
- Specified by:
fatal
in interfaceILogger
- Overrides:
fatal
in classLoggerAdapterAbstract
- Parameters:
message
- the message object to logt
- the exception to log, including its stack trace
-
info
Description copied from interface:ILogger
Logs a message with parameters at theINFO
level.- Specified by:
info
in interfaceILogger
- Overrides:
info
in classLoggerAdapterAbstract
- Parameters:
message
- the message to logparams
- parameters to the message
-
info
Description copied from interface:ILogger
- Specified by:
info
in interfaceILogger
- Overrides:
info
in classLoggerAdapterAbstract
- Parameters:
message
- the message object to logt
- the exception to log, including its stack trace
-
log
Description copied from interface:ILogger
Logs 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:ILogger
Logs a message at the given level including the stack trace of theThrowable
t
passed as parameter.- Parameters:
level
- the logging levelmessage
- the message to logt
- the exception to log, including its stack trace
-
throwing
Description copied from interface:ILogger
Logs an exception or error to be thrown.- Type Parameters:
T
- the Throwable type- Parameters:
t
- The Throwable- Returns:
- the Throwable
-
trace
Description copied from interface:ILogger
Logs a message with parameters at theTRACE
level.- Specified by:
trace
in interfaceILogger
- Overrides:
trace
in classLoggerAdapterAbstract
- Parameters:
message
- the message to logparams
- parameters to the message
-
trace
Description copied from interface:ILogger
- Specified by:
trace
in interfaceILogger
- Overrides:
trace
in classLoggerAdapterAbstract
- Parameters:
message
- the message object to logt
- the exception to log, including its stack trace
-
warn
Description copied from interface:ILogger
Logs a message with parameters at theWARN
level.- Specified by:
warn
in interfaceILogger
- Overrides:
warn
in classLoggerAdapterAbstract
- Parameters:
message
- the message to logparams
- parameters to the message
-
warn
Description copied from interface:ILogger
- Specified by:
warn
in interfaceILogger
- Overrides:
warn
in classLoggerAdapterAbstract
- Parameters:
message
- the message object to logt
- the exception to log, including its stack trace
-