|
|
@@ -443,7 +443,7 @@ class Logger implements LoggerInterface
|
|
|
public function log($level, $message, array $context = array())
|
|
|
{
|
|
|
$level = static::toMonologLevel($level);
|
|
|
-
|
|
|
+
|
|
|
return $this->addRecord($level, $message, $context);
|
|
|
}
|
|
|
|
|
|
@@ -618,10 +618,12 @@ class Logger implements LoggerInterface
|
|
|
/**
|
|
|
* Set the timezone to be used for the timestamp of log records.
|
|
|
*
|
|
|
- * @param string $tz Timezone name
|
|
|
+ * This is stored globally for all Logger instances
|
|
|
+ *
|
|
|
+ * @param \DateTimeZone $tz Timezone object
|
|
|
*/
|
|
|
- public static function setTimezone($tz)
|
|
|
+ public static function setTimezone(\DateTimeZone $tz)
|
|
|
{
|
|
|
- self::$timezone = new \DateTimeZone($tz);
|
|
|
+ self::$timezone = $tz;
|
|
|
}
|
|
|
}
|