1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-21 00:26:10 +02:00

Moved the channel as label on the FirePHP message for a better formatting

This commit is contained in:
Christophe Coevoet
2011-06-01 00:43:09 +02:00
parent c1675c59d8
commit e9f3e0c2d7
3 changed files with 9 additions and 8 deletions

View File

@@ -23,7 +23,7 @@ class WildfireFormatter extends LineFormatter
/**
* Similar to LineFormatter::SIMPLE_FORMAT, except without the "[%datetime%]"
*/
const SIMPLE_FORMAT = "%channel%: %message% %context% %extra%";
const SIMPLE_FORMAT = "%message% %context% %extra%";
/**
* Translates Monolog log levels to Wildfire levels.
@@ -51,6 +51,7 @@ class WildfireFormatter extends LineFormatter
'Type' => $this->logLevels[$record['level']],
'File' => '',
'Line' => '',
'Label' => $record['channel'],
),
$message,
));