Permalink
Browse files

added setter for dateFormat

  • Loading branch information...
Brian Fenton
Brian Fenton committed Oct 13, 2010
1 parent 9ab47fa commit aed82bee2ac983e825b2e15dd46d8929bec89709
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/KLogger.php
View
@@ -230,6 +230,16 @@ public function clearMessages()
$this->_messageQueue = array();
}
+ /**
+ * Sets the date format used by all instances of KLogger
+ *
+ * @param string $dateFormat Valid format string for date()
+ */
+ public static function setDateFormat($dateFormat)
+ {
+ self::$_dateFormat = $dateFormat;
+ }
+
/**
* Writes a $line to the log with a severity level of INFO. Any information
* can be used here, or it could be used with E_STRICT errors

0 comments on commit aed82be

Please sign in to comment.