ILogger

Base class used to interface with the crafttweaker.log file and other loggers (such as the player logger).

This class was added by a mod with mod-id crafttweaker. So you need to have this mod installed if you want to use this feature.

Importing the class

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.

import crafttweaker.api.ILogger;

Methods

debug

Logs a debug message.

Return Type: void

ILogger.debug(message as string) as void
logger.debug("message");
ParameterTypeDescription
messagestringmessage to be logged.

error

Logs an error message.

Return Type: void

ILogger.error(message as string) as void
logger.error("message");
ParameterTypeDescription
messagestringmessage to be logged.

info

Logs an info message.

Return Type: void

ILogger.info(message as string) as void
logger.info("message");
ParameterTypeDescription
messagestringmessage to be logged.

trace

Logs a trace message.

Return Type: void

ILogger.trace(message as string) as void
logger.trace("message");
ParameterTypeDescription
messagestringmessage to be logged

warning

Logs a warning message.

Return Type: void

ILogger.warning(message as string) as void
logger.warning("message");
ParameterTypeDescription
messagestringmessage to be logged.