Symfony\Bridge\Monolog\Logger
Logger.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class Logger
extends Logger
implements
LoggerInterface,DebugLoggerInterface
{
- // Inherited constants from Logger
- const DEBUG = 100;
- const INFO = 200;
- const NOTICE = 250;
- const WARNING = 300;
- const ERROR = 400;
- const CRITICAL = 500;
- const ALERT = 550;
- const EMERGENCY = 600;
- // Inherited members from Logger
- protected array $levels;
- protected DateTimeZone $timezone;
- protected $name;
- protected array $handlers;
- protected array $processors;
- // methods
- public void emerg()
- public void crit()
- public void err()
- public void warn()
- public void getLogs()
- public void countErrors()
- private DebugLoggerInterface|null getDebugLogger()
- // Inherited methods from Logger
- public void __construct()
- public string getName()
- public void pushHandler()
- public HandlerInterface popHandler()
- public void pushProcessor()
- public callable popProcessor()
- public Boolean addRecord()
- public Boolean addDebug()
- public Boolean addInfo()
- public Boolean addNotice()
- public Boolean addWarning()
- public Boolean addError()
- public Boolean addCritical()
- public Boolean addAlert()
- public Boolean addEmergency()
- public static array getLevels()
- public static string getLevelName()
- public Boolean isHandling()
- public Boolean log()
- public Boolean debug()
- public Boolean info()
- public Boolean notice()
- public Boolean warn()
- public Boolean warning()
- public Boolean err()
- public Boolean error()
- public Boolean crit()
- public Boolean critical()
- public Boolean alert()
- public Boolean emerg()
- public Boolean emergency()
Hierarchy
Extends
Implements
Constants
Name | Value |
---|---|
DEBUG | 100 |
INFO | 200 |
NOTICE | 250 |
WARNING | 300 |
ERROR | 400 |
CRITICAL | 500 |
ALERT | 550 |
EMERGENCY | 600 |
Members
protected
- $handlers
—
array
The handler stack - $levels
- $name
- $processors
—
array
Processors that will process all log records - $timezone — Monolog\DateTimeZone
Methods
private
- getDebugLogger() — Returns a DebugLoggerInterface instance if one is registered with this logger.
public
Inherited from Monolog\Logger
public
- addAlert() — Adds a log record at the ALERT level.
- addCritical() — Adds a log record at the CRITICAL level.
- addDebug() — Adds a log record at the DEBUG level.
- addEmergency() — Adds a log record at the EMERGENCY level.
- addError() — Adds a log record at the ERROR level.
- addInfo() — Adds a log record at the INFO level.
- addNotice() — Adds a log record at the NOTICE level.
- addRecord() — Adds a log record.
- addWarning() — Adds a log record at the WARNING level.
- alert() — Adds a log record at the ALERT level.
- crit() — Adds a log record at the CRITICAL level.
- critical() — Adds a log record at the CRITICAL level.
- debug() — Adds a log record at the DEBUG level.
- emerg() — Adds a log record at the EMERGENCY level.
- emergency() — Adds a log record at the EMERGENCY level.
- err() — Adds a log record at the ERROR level.
- error() — Adds a log record at the ERROR level.
- getLevelName() — Gets the name of the logging level.
- getLevels() — Gets all supported logging levels.
- getName()
- info() — Adds a log record at the INFO level.
- isHandling() — Checks whether the Logger has a handler that listens on the given level
- log() — Adds a log record at an arbitrary level.
- notice() — Adds a log record at the INFO level.
- popHandler() — Pops a handler from the stack
- popProcessor() — Removes the processor on top of the stack and returns it.
- pushHandler() — Pushes a handler on to the stack.
- pushProcessor() — Adds a processor on to the stack.
- warn() — Adds a log record at the WARNING level.
- warning() — Adds a log record at the WARNING level.