Logging data in CakePHP is easy - the log() function is provided by the LogTrait , which is the common ancestor for many CakePHP classes. If the context is a CakePHP class (Controller, Component, View,…), you can log your data. You can also use Log::write() directly. See Writing to Logs.
Best...