Package com.chillycheesy.modulo.utils
Class Logger
java.lang.Object
com.chillycheesy.modulo.utils.Logger
Logger class can be used to display information in the server console.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidBroadcast a debug log in the console.voidBroadcast an error log in the console.voidBroadcast an info log in the console.voidBroadcast warn log in the console.
-
Constructor Details
-
Logger
Initialize a new Logger. It si not necessary to instantiate a new Logger. If you want to display a log, useModuloAPI.getLogger().- Parameters:
container- EventContainer instance.
-
-
Method Details
-
info
Broadcast an info log in the console.- Parameters:
module- Module that is logging the message.content- The Object to broadcast (The console use the toString() method of the object to broadcast it.).
-
warn
Broadcast warn log in the console.- Parameters:
module- Module that is logging the message.content- The Object to broadcast (The console use the toString() method of the object to broadcast it.).
-
error
Broadcast an error log in the console.- Parameters:
module- Module that is logging the message.content- The Object to broadcast (The console use the toString() method of the object to broadcast it.).
-
debug
Broadcast a debug log in the console.- Parameters:
module- Module that is logging the message.content- The Object to broadcast (The console use the toString() method of the object to broadcast it.).
-