Logo

Log::setConfig()

ops...

Description

Get or set the configuration for a Logger. Is from the library 'Cake\Log\Log'.

Usage: Log::setConfig($key, $config) Log::debug('Data: ' . file_get_contents('php://input')); Prints a message, which comes preappended with a timestamp, to the log file 'debug' Log::debug('Data: ' . json_encode($data, JSON_PRETTY_PRINT)); Prints a message with readable JSON.