Package org.spongepowered.asm.logging
Interface ILogger
- All Known Implementing Classes:
LoggerAdapterAbstract
,LoggerAdapterConsole
,LoggerAdapterDefault
,LoggerAdapterJava
public interface ILogger
Interface extracted from Log4j2's Logger (org.apache.logging.log4j.Logger
) with only the main methods used by Mixin included. This is to
facilitate the delegation of logging to mixin services, and to sever the
dependency on log4j2 from Mixin's core.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Logs an exception or error that has been caught.void
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
getId()
Get the id of this loggergetType()
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
-
Method Details
-
getId
String getId()Get the id of this logger -
getType
String getType()Get a short human-readable name of this logger type -
catching
Logs an exception or error that has been caught.- Parameters:
level
- The logging Level.t
- The Throwable.
-
catching
Logs an exception or error that has been caught.- Parameters:
t
- The Throwable.
-
debug
Logs a message with parameters at theDEBUG
level.- Parameters:
message
- the message to logparams
- parameters to the message
-
debug
- Parameters:
message
- the message to logt
- the exception to log, including its stack trace
-
error
Logs a message with parameters at theERROR
level- Parameters:
message
- the message to logparams
- parameters to the message
-
error
- Parameters:
message
- the message object to logt
- the exception to log, including its stack trace
-
fatal
Logs a message with parameters at theFATAL
level.- Parameters:
message
- the message to logparams
- parameters to the message
-
fatal
- Parameters:
message
- the message object to logt
- the exception to log, including its stack trace
-
info
Logs a message with parameters at theINFO
level.- Parameters:
message
- the message to logparams
- parameters to the message
-
info
- Parameters:
message
- the message object to logt
- the exception to log, including its stack trace
-
log
Logs a message with parameters at the given level.- Parameters:
level
- the logging levelmessage
- the message to logparams
- parameters to the message
-
log
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
Logs an exception or error to be thrown.- Type Parameters:
T
- the Throwable type- Parameters:
t
- The Throwable- Returns:
- the Throwable
-
trace
Logs a message with parameters at theTRACE
level.- Parameters:
message
- the message to logparams
- parameters to the message
-
trace
- Parameters:
message
- the message object to logt
- the exception to log, including its stack trace
-
warn
Logs a message with parameters at theWARN
level.- Parameters:
message
- the message to logparams
- parameters to the message
-
warn
- Parameters:
message
- the message object to logt
- the exception to log, including its stack trace
-