Uses world.sendMessage to send the log message to the chat.
Uses console.error to send the log message to the console as an error.
Uses console.log to send the log message to the console.
Uses console.warn to send the log message to the console as a warning.
The
OutputTypeenum defines the various types of outputs that the logger can use.