The Logging
service provides shared functionality to write messages to the console.
While you can access the Logging
service directly via the ServiceProvider
, it is recommended to use the wrapper class, Log
. This class can be used to read and write messages to the console.
Log.debug("label1", "label2", "My log message");
Log.debug("label1", "label2", "My log message")
For a full list of APIs provided by the Logging
service, see Logging.java and for a complete list of APIs provided by the wrapper class, see Log.java.