Skip to content

Toro Cloud Dev Center


Logger

Logger contains a bunch of functions for logging messages. Methods of this class can be used in both Gloop and Groovy.

Below are code snippets that use some of the functions of this class:

Sample service showing how to use the `Logger` functions

 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()