__construct() __construct(\EasyWeChat\Kernel\ServiceContainer $app) LogManager constructor. Parameters \EasyWeChat\Kernel\ServiceContainer $app
stack() stack(array $channels, string|null $channel = null) : \Psr\Log\LoggerInterface Create a new, on-demand aggregate logger instance. Parameters array $channels string|null $channel Returns \Psr\Log\LoggerInterface
channel() channel(string|null $channel = null) : mixed Get a log channel instance. Parameters string|null $channel Returns mixed
driver() driver(string|null $driver = null) : mixed Get a log driver instance. Parameters string|null $driver Returns mixed
setDefaultDriver() setDefaultDriver(string $name) Set the default log driver name. Parameters string $name
extend() extend(string $driver, \Closure $callback) : $this Register a custom driver creator Closure. Parameters string $driver \Closure $callback Returns $this
emergency() emergency(string $message, array $context = array()) : mixed System is unusable. Parameters string $message array $context Returns mixed
alert() alert(string $message, array $context = array()) : mixed Action must be taken immediately. Example: Entire website down, database unavailable, etc. This should trigger the SMS alerts and wake you up. Parameters string $message array $context Returns mixed
critical() critical(string $message, array $context = array()) : mixed Critical conditions. Example: Application component unavailable, unexpected exception. Parameters string $message array $context Returns mixed
error() error(string $message, array $context = array()) : mixed Runtime errors that do not require immediate action but should typically be logged and monitored. Parameters string $message array $context Returns mixed
warning() warning(string $message, array $context = array()) : mixed Exceptional occurrences that are not errors. Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong. Parameters string $message array $context Returns mixed
notice() notice(string $message, array $context = array()) : mixed Normal but significant events. Parameters string $message array $context Returns mixed
info() info(string $message, array $context = array()) : mixed Interesting events. Example: User logs in, SQL logs. Parameters string $message array $context Returns mixed
debug() debug(string $message, array $context = array()) : mixed Detailed debug information. Parameters string $message array $context Returns mixed
log() log(mixed $level, string $message, array $context = array()) : mixed Logs with an arbitrary level. Parameters mixed $level string $message array $context Returns mixed
__call() __call(string $method, array $parameters) : mixed Dynamically call the default driver instance. Parameters string $method array $parameters Returns mixed
get() get(string $name) : \Psr\Log\LoggerInterface Attempt to get the log from the local cache. Parameters string $name Returns \Psr\Log\LoggerInterface
resolve() resolve(string $name) : \Psr\Log\LoggerInterface Resolve the given log instance by name. Parameters string $name Throws \InvalidArgumentException Returns \Psr\Log\LoggerInterface
createEmergencyLogger() createEmergencyLogger() : \Monolog\Logger Create an emergency log handler to avoid white screens of death. Returns \Monolog\Logger
callCustomCreator() callCustomCreator(array $config) : mixed Call a custom driver creator. Parameters array $config Returns mixed
createStackDriver() createStackDriver(array $config) : \Monolog\Logger Create an aggregate log driver instance. Parameters array $config Returns \Monolog\Logger
createSingleDriver() createSingleDriver(array $config) : \Psr\Log\LoggerInterface Create an instance of the single file log driver. Parameters array $config Returns \Psr\Log\LoggerInterface
createDailyDriver() createDailyDriver(array $config) : \Psr\Log\LoggerInterface Create an instance of the daily file log driver. Parameters array $config Returns \Psr\Log\LoggerInterface
createSlackDriver() createSlackDriver(array $config) : \Psr\Log\LoggerInterface Create an instance of the Slack log driver. Parameters array $config Returns \Psr\Log\LoggerInterface
createSyslogDriver() createSyslogDriver(array $config) : \Psr\Log\LoggerInterface Create an instance of the syslog log driver. Parameters array $config Returns \Psr\Log\LoggerInterface
createErrorlogDriver() createErrorlogDriver(array $config) : \Psr\Log\LoggerInterface Create an instance of the "error log" log driver. Parameters array $config Returns \Psr\Log\LoggerInterface
prepareHandlers() prepareHandlers(array $handlers) : array Prepare the handlers for usage by Monolog. Parameters array $handlers Returns array
prepareHandler() prepareHandler(\Monolog\Handler\HandlerInterface $handler) : \Monolog\Handler\HandlerInterface Prepare the handler for usage by Monolog. Parameters \Monolog\Handler\HandlerInterface $handler Returns \Monolog\Handler\HandlerInterface
formatter() formatter() : \Monolog\Formatter\FormatterInterface Get a Monolog formatter instance. Returns \Monolog\Formatter\FormatterInterface
parseChannel() parseChannel(array $config) : string Extract the log channel from the given configuration. Parameters array $config Returns string
level() level(array $config) : integer Parse the string level into a Monolog constant. Parameters array $config Throws \InvalidArgumentException Returns integer