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.
Monolog\Registry允許我們配置全局的logger,并且我們可以全局靜態(tài)訪問,這雖然不是最佳實踐,但可以在某些老的代碼庫中提供一些幫助或者僅僅只是簡單使用。
ErrorHandler: The Monolog\ErrorHandler
class allows you to easily register a Logger instance as an exception handler, error handler or fatal error handler.
Monolog\ErrorHandler 允許我們注冊一個Logger實例作為一個異常處理句柄,錯誤處理句柄或者致命錯誤處理句柄。
ErrorLevelActivationStrategy: Activates a FingersCrossedHandler when a certain log level is reached.
當(dāng)達(dá)到某個日志等級的時候激活 FingersCrossedHandler。
ChannelLevelActivationStrategy: Activates a FingersCrossedHandler when a certain log level is reached, depending on which channel received the log record.
當(dāng)達(dá)到某個日志等級的時候激活 FingersCrossedHandler,取決于哪個通道收到日志信息。