Log Functions
From AgileApps Support Wiki
These methods are defined in the Logger class. Going from the lowest level to the highest:
- trace("message", "msgType") - Detailed platform trace. Not recommended for application debugging.
- debug("message", "msgType") - Platform debug messages. Not recommended for application debugging.
- info("message", "msgType") - Log an information message.
- This is the default display level in the Debug Log. This level is appropriate for most application debugging, as logged messages from here through fatal are displayed, by default.
- warn("message", "msgType") - Log a warning message.
- error("message", "msgType") - Log an error.
- fatal("message", "msgType") - Log a fatal error.
where:
- message is the message to put into the debug log
- msgType is an arbitrary string that specifies a message type, or category
(Put anything there you like. For example, the class name. Use it for searching and filtering the debug log.)
Considerations:
- Log messages are plain text. For a linebreak, use "\n".