codeguy/Slim-Extras — pull request #60 by tuupola (2013-02-16 22:39:28+00:00)
Title: Allow passing format string for log date format.

Sometimes you want something else than ISO 8601 date. This patch allow you to pass date format string when you to initialize logger. For example something like:

$app = new \Slim\Slim(array(
"log.writer" => new \Slim\Extras\Log\DateTimeFileWriter(array(
"path" => "./logs",
"name_format" => "Y-m-d",
"date_format" => "Y-m-d H:i:s",
"message_format" => "%label% [%date%] %message%"
))
));