1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-07-31 02:10:22 +02:00
Files
php-monolog/doc/03-utilities.md
Robert Gust-Bardon 37b587687d Move POSIX signal handling to SignalHandler*
Suggested by Helmut Hummel (@helhum).
2018-07-01 23:42:41 -05:00

928 B

Utilities

  • Registry: The Monolog\Registry class lets you configure global loggers that you can then statically access from anywhere. It is not really a best practice but can help in some older codebases or for ease of use.
  • ErrorHandler: The Monolog\ErrorHandler class allows you to easily register a Logger instance as an exception handler, error handler or fatal error handler.
  • SignalHandler: The Monolog\SignalHandler class allows you to easily register a Logger instance as a POSIX signal handler.
  • ErrorLevelActivationStrategy: Activates a FingersCrossedHandler when a certain log level is reached.
  • ChannelLevelActivationStrategy: Activates a FingersCrossedHandler when a certain log level is reached, depending on which channel received the log record.

Handlers, Formatters and Processors | Extending Monolog