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 TypeMethodDescriptionvoid
Broadcast a debug log in the console.void
Broadcast an error log in the console.void
Broadcast an info log in the console.void
Broadcast 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.).
-