LogManager
class LogManager
Traits
ParsesLogConfiguration
Constants
LEVELS |
Available log levels. |
Properties
protected array | $channel | The default logging channel. |
Methods
__construct()
Create a new instance.
bool
isFile()
Determine whether logs are written to files.
array
getLogFilenames()
Get the filenames of the logfiles.
string
getLogFileContent(string $filename)
Get the content of a logfile.
bool
isRedis()
Determine whether logs are written to files.
Collection
getRedisLogMessages(string $level = 'debug')
Get the log messages.
int
getRecentCount(string $level = 'debug', int $subDays = 1)
Get the number of log messages of the last day(s).
string
getFallbackChannelName()
Get fallback log channel name.
Details
at line 42
__construct()
Create a new instance.
at line 53
bool
isFile()
Determine whether logs are written to files.
at line 63
array
getLogFilenames()
Get the filenames of the logfiles.
at line 81
string
getLogFileContent(string $filename)
Get the content of a logfile.
at line 93
bool
isRedis()
Determine whether logs are written to files.
at line 106
Collection
getRedisLogMessages(string $level = 'debug')
Get the log messages.
at line 129
int
getRecentCount(string $level = 'debug', int $subDays = 1)
Get the number of log messages of the last day(s).
at line 169
protected string
getFallbackChannelName()
Get fallback log channel name.