Commit 21aa8f4e by irul

add dump example

1 parent 81f4bb5b
......@@ -9,3 +9,7 @@ require_once 'Logger.php';
$logger = Logger::get_logger('./logs', 'my-log');
$logger->log("normal log message");
$logger->log("log with addtional arguments: %s, %s", "msg1", "msg2");
/* Dump */
$data = array(1,2,3);
$logger->dump($data, "data"); // or just: $logger->dump($data);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!