Skip to content
This repository
Browse code

added setter for dateFormat

  • Loading branch information...
commit aed82bee2ac983e825b2e15dd46d8929bec89709 1 parent 9ab47fa
authored October 12, 2010

Showing 1 changed file with 10 additions and 0 deletions. Show diff stats Hide diff stats

  1. 10  src/KLogger.php
10  src/KLogger.php
@@ -231,6 +231,16 @@ public function clearMessages()
231 231
     }
232 232
 
233 233
     /**
  234
+     * Sets the date format used by all instances of KLogger
  235
+     * 
  236
+     * @param string $dateFormat Valid format string for date()
  237
+     */
  238
+    public static function setDateFormat($dateFormat)
  239
+    {
  240
+        self::$_dateFormat = $dateFormat;
  241
+    }
  242
+
  243
+    /**
234 244
      * Writes a $line to the log with a severity level of INFO. Any information
235 245
      * can be used here, or it could be used with E_STRICT errors
236 246
      *

0 notes on commit aed82be

Please sign in to comment.
Something went wrong with that request. Please try again.