Skip to content

Commit

Permalink
added setter for dateFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Fenton committed Oct 13, 2010
1 parent 9ab47fa commit aed82be
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/KLogger.php
Expand Up @@ -230,6 +230,16 @@ public function clearMessages()
$this->_messageQueue = array(); $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 * 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 * can be used here, or it could be used with E_STRICT errors
Expand Down

0 comments on commit aed82be

Please sign in to comment.