If the print-function is not enough for you, then you can use the logger Object to log Commands, information warnings and more.

Accessing the Logging Handler

You can access the Formatting Handler using the logger global keyword.


Accessible, but useless Methods

You can not use Java’s throwables so the first Method is useless.
The second Method does absolutely nothing. Literally, the implementation is empty!