class LogManager

Properties

protectedarray $channel The default logging channel.

Methods

__construct()

Create a new instance.

boolean
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.

boolean
isRedis()

Determine whether logs are written to files.

array
getRedisLogMessages()

Get the log messages.

int
getRecentCount(integer$subDays =1)

Get the number of log messages of the last day(s).

Details

at line24
__construct()

Create a new instance.

at line35
boolean isFile()

Determine whether logs are written to files.

Return Value

boolean

at line45
array getLogFilenames()

Get the filenames of the logfiles.

Return Value

array

at line63
string getLogFileContent(string$filename)

Get the content of a logfile.

Parameters

string $filename

Return Value

string

at line75
boolean isRedis()

Determine whether logs are written to files.

Return Value

boolean

at line86
array getRedisLogMessages()

Get the log messages.

Return Value

array

at line98
int getRecentCount(integer$subDays =1)

Get the number of log messages of the last day(s).

Parameters

integer $subDays Number of days to go back.

Return Value

int