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 TypeMethodDescriptionvoidLogs an exception or error that has been caught.voidLogs an exception or error that has been caught.voidLogs a message with parameters at theDEBUGlevel.voidvoidLogs a message with parameters at theERRORlevelvoidvoidLogs a message with parameters at theFATALlevel.voidgetId()Get the id of this loggergetType()Get a short human-readable name of this logger typevoidLogs a message with parameters at theINFOlevel.voidvoidLogs 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.voidLogs a message with parameters at theTRACElevel.voidvoidLogs a message with parameters at theWARNlevel.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 theDEBUGlevel.- 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 theERRORlevel- 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 theFATALlevel.- 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 theINFOlevel.- 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 theThrowabletpassed 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 theTRACElevel.- 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 theWARNlevel.- 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
-