For debugging und logging output the class
Message is used as well:
- The method Message::trace creates an output in the view, if the debug entry in the configuration is set to 1 - otherwise the output is suppressed (see configuration section cms).
- The method Message::log creates an output in the application's logfile (see configuration section cms)
To output complete objects in the view the method Message::dump is used. The following method call writes the same dump into the logfile.
Message::log(Message::getDump($object));