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

Add visibility to constants

This commit is contained in:
George Mponos
2018-11-17 20:38:51 +02:00
parent 6bb347c040
commit c68b71edeb
20 changed files with 45 additions and 45 deletions

View File

@@ -22,7 +22,7 @@ use Gelf\Message;
*/
class GelfMessageFormatter extends NormalizerFormatter
{
const DEFAULT_MAX_LENGTH = 32766;
public const DEFAULT_MAX_LENGTH = 32766;
/**
* @var string the name of the system for the Gelf log message

View File

@@ -23,8 +23,8 @@ use Throwable;
*/
class JsonFormatter extends NormalizerFormatter
{
const BATCH_MODE_JSON = 1;
const BATCH_MODE_NEWLINES = 2;
public const BATCH_MODE_JSON = 1;
public const BATCH_MODE_NEWLINES = 2;
protected $batchMode;
protected $appendNewline;

View File

@@ -23,7 +23,7 @@ use Monolog\Utils;
*/
class LineFormatter extends NormalizerFormatter
{
const SIMPLE_FORMAT = "[%datetime%] %channel%.%level_name%: %message% %context% %extra%\n";
public const SIMPLE_FORMAT = "[%datetime%] %channel%.%level_name%: %message% %context% %extra%\n";
protected $format;
protected $allowInlineLineBreaks;

View File

@@ -18,7 +18,7 @@ namespace Monolog\Formatter;
*/
class LogmaticFormatter extends JsonFormatter
{
const MARKERS = ["sourcecode", "php"];
public const MARKERS = ["sourcecode", "php"];
/**
* @var string

View File

@@ -22,7 +22,7 @@ use Monolog\Utils;
*/
class NormalizerFormatter implements FormatterInterface
{
const SIMPLE_DATE = "Y-m-d\TH:i:sP";
public const SIMPLE_DATE = "Y-m-d\TH:i:sP";
protected $dateFormat;
protected $maxNormalizeDepth = 9;

View File

@@ -22,7 +22,7 @@ use Monolog\Logger;
*/
class WildfireFormatter extends NormalizerFormatter
{
const TABLE = 'table';
public const TABLE = 'table';
/**
* Translates Monolog log levels to Wildfire levels.