Changeset 5249
- Timestamp:
- 09/24/07 09:45:31 (2 years ago)
- Files:
-
- trunk/lib/log/sfConsoleLogger.class.php (modified) (1 diff)
- trunk/test/unit/log/sfAggregateLoggerTest.php (modified) (1 diff)
- trunk/test/unit/log/sfConsoleLoggerTest.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/log/sfConsoleLogger.class.php
r5109 r5249 27 27 protected function doLog($message, $priority) 28 28 { 29 echo $message ;29 echo $message.(DIRECTORY_SEPARATOR == '\\' ? "\r\n" : "\n"); 30 30 } 31 31 } trunk/test/unit/log/sfAggregateLoggerTest.php
r4957 r5249 39 39 $lines = explode("\n", file_get_contents($file)); 40 40 $t->like($lines[0], '/foo/', '->log() logs a message to all loggers'); 41 $t->is($content, 'foo', '->log() logs a message to all loggers');41 $t->is($content, "foo\n", '->log() logs a message to all loggers'); 42 42 43 43 // ->getLoggers() ->addLoggers() ->addLogger() trunk/test/unit/log/sfConsoleLoggerTest.php
r4957 r5249 16 16 ob_start(); 17 17 $logger->log('foo'); 18 $t->is(ob_get_clean(), 'foo', 'sfConsoleLogger logs messages to the console');18 $t->is(ob_get_clean(), "foo\n", 'sfConsoleLogger logs messages to the console');

