Skip to content

Instantly share code, notes, and snippets.

@anaxamaxan
Created April 18, 2014 04:18
Show Gist options
  • Save anaxamaxan/11024637 to your computer and use it in GitHub Desktop.
Save anaxamaxan/11024637 to your computer and use it in GitHub Desktop.
app/services/Log/Logger.php
<?php namespace Sa\Services\Log;
class Logger extends \Monolog\Logger
{
/**
* @param string $name The logging channel
* @param \Monolog\Handler\HandlerInterface[] $handlers Optional stack of handlers, the first one in the array is called first, etc.
* @param callable[] $processors Optional array of processors
*/
public function __construct($name, array $handlers = array(), array $processors = array())
{
parent::__construct($name, $handlers, $processors);
static::$timezone = new \DateTimeZone('America/Los_Angeles');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment