Skip to content

Commit

Permalink
Replace Slim_Log consts with integer values in TimestampLogFileWriter
Browse files Browse the repository at this point in the history
Fixes #16
  • Loading branch information
Josh Lockhart committed May 8, 2012
1 parent cf20851 commit 0fd2f83
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Log Writers/TimestampLogFileWriter.php
Expand Up @@ -100,16 +100,16 @@ public function write( $object, $level ) {
//Determine label
$label = 'DEBUG';
switch ( $level ) {
case Slim_Log::FATAL:
case 0:
$label = 'FATAL';
break;
case Slim_Log::ERROR:
case 1:
$label = 'ERROR';
break;
case Slim_Log::WARN:
case 2:
$label = 'WARN';
break;
case Slim_Log::INFO:
case 3:
$label = 'INFO';
break;
}
Expand Down

0 comments on commit 0fd2f83

Please sign in to comment.