diff --git a/src/KLogger.php b/src/KLogger.php index 0512b5d..583bf51 100755 --- a/src/KLogger.php +++ b/src/KLogger.php @@ -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