ILogger
Link to ilogger
Base class used to interface with the crafttweaker.log file and other loggers (such as the player logger).
Importare la Classe
Link to importare-la-classe
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
ZenScript Copyimport crafttweaker.api.ILogger;
Metodi
Link to metodi
Name: debug
Logs a debug message.
Return Type: void
ZenScript Copy// ILogger.debug(message as string) as void
logger.debug("message");
Parametro | Tipo | Descrizione |
---|---|---|
Parametro message | Tipo string | Descrizione message to be logged. |
Name: error
Logs an error message.
Return Type: void
ZenScript Copy// ILogger.error(message as string) as void
logger.error("message");
Parametro | Tipo | Descrizione |
---|---|---|
Parametro message | Tipo string | Descrizione message to be logged. |
Name: info
Logs an info message.
Return Type: void
ZenScript Copy// ILogger.info(message as string) as void
logger.info("message");
Parametro | Tipo | Descrizione |
---|---|---|
Parametro message | Tipo string | Descrizione message to be logged. |
Name: trace
Logs a trace message.
Return Type: void
ZenScript Copy// ILogger.trace(message as string) as void
logger.trace("message");
Parametro | Tipo | Descrizione |
---|---|---|
Parametro message | Tipo string | Descrizione message to be logged |
Name: warning
Logs a warning message.
Return Type: void
ZenScript Copy// ILogger.warning(message as string) as void
logger.warning("message");
Parametro | Tipo | Descrizione |
---|---|---|
Parametro message | Tipo string | Descrizione message to be logged. |