LogManager
final class LogManager (View source)
Provides framework-owned app, error and request log channels.
Methods
Initializes cached built-in loggers using canonical files and shared retention.
Returns the always-available runtime exception channel.
Returns the always-available application channel bound as the PSR logger.
Returns the optional HTTP request channel or a null logger when disabled.
Reports whether a built-in channel writes records under the active policy.
Details
__construct
__construct(LoggingConfig $config, LogFilePathResolver $pathResolver, DirectoryManagerInterface $directoryManager)
Initializes cached built-in loggers using canonical files and shared retention.
error
LoggerInterface
error()
Returns the always-available runtime exception channel.
app
LoggerInterface
app()
Returns the always-available application channel bound as the PSR logger.
request
LoggerInterface
request()
Returns the optional HTTP request channel or a null logger when disabled.
enabled
bool
enabled(string $channel, bool $default = false)
Reports whether a built-in channel writes records under the active policy.