LoggerMethods
LoggerMethods
contains a bunch of one-liners for
logging messages. Methods of this class can be used in both Gloop
and Groovy.
Below are code snippets that use some of the methods of this class:
1 2 3 4 5 6 7 8 9 10 11 | // Publish a debug-level log message "Conditions matched; proceeding with operation".debug() // Publish an info-level log message "Successfully connected to server".info() // Publish a warning-level log message "Could not save configuration updates; reverting to initial configuration".warn() // Publish an error-level log message "Could not accomplish task; a fatal error occurred".error() |