mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-26 10:06:10 +01:00
Tweak const visibility, refs #1228
This commit is contained in:
@@ -22,7 +22,7 @@ use Gelf\Message;
|
||||
*/
|
||||
class GelfMessageFormatter extends NormalizerFormatter
|
||||
{
|
||||
public const DEFAULT_MAX_LENGTH = 32766;
|
||||
protected const DEFAULT_MAX_LENGTH = 32766;
|
||||
|
||||
/**
|
||||
* @var string the name of the system for the Gelf log message
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace Monolog\Formatter;
|
||||
*/
|
||||
class LogmaticFormatter extends JsonFormatter
|
||||
{
|
||||
public const MARKERS = ["sourcecode", "php"];
|
||||
protected const MARKERS = ["sourcecode", "php"];
|
||||
|
||||
/**
|
||||
* @var string
|
||||
@@ -59,7 +59,7 @@ class LogmaticFormatter extends JsonFormatter
|
||||
$record["appname"] = $this->appname;
|
||||
}
|
||||
|
||||
$record["@marker"] = self::MARKERS;
|
||||
$record["@marker"] = static::MARKERS;
|
||||
|
||||
return parent::format($record);
|
||||
}
|
||||
|
||||
@@ -22,8 +22,6 @@ use Monolog\Logger;
|
||||
*/
|
||||
class WildfireFormatter extends NormalizerFormatter
|
||||
{
|
||||
public const TABLE = 'table';
|
||||
|
||||
/**
|
||||
* Translates Monolog log levels to Wildfire levels.
|
||||
*/
|
||||
@@ -69,10 +67,10 @@ class WildfireFormatter extends NormalizerFormatter
|
||||
$message = reset($message);
|
||||
}
|
||||
|
||||
if (isset($record['context'][self::TABLE])) {
|
||||
if (isset($record['context']['table'])) {
|
||||
$type = 'TABLE';
|
||||
$label = $record['channel'] .': '. $record['message'];
|
||||
$message = $record['context'][self::TABLE];
|
||||
$message = $record['context']['table'];
|
||||
} else {
|
||||
$type = $this->logLevels[$record['level']];
|
||||
$label = $record['channel'];
|
||||
|
||||
Reference in New Issue
Block a user