DolLogsCollector class.
More...
◆ __construct()
DolLogsCollector::__construct |
( |
|
$path = null , |
|
|
|
$name = 'logs' |
|
) |
| |
◆ collect()
DolLogsCollector::collect |
( |
| ) |
|
◆ getLevels()
DolLogsCollector::getLevels |
( |
| ) |
|
Get the log levels from psr/log.
- Returns
- array Array of log level
Definition at line 198 of file DolLogsCollector.php.
◆ getLogs()
DolLogsCollector::getLogs |
( |
|
$file | ) |
|
Search a string for log entries.
- Parameters
-
- Returns
- array Lines of logs
Definition at line 174 of file DolLogsCollector.php.
◆ getLogsFile()
DolLogsCollector::getLogsFile |
( |
| ) |
|
◆ getStorageLogs()
DolLogsCollector::getStorageLogs |
( |
|
$path | ) |
|
◆ getWidgets()
DolLogsCollector::getWidgets |
( |
| ) |
|
◆ tailFile()
DolLogsCollector::tailFile |
( |
|
$file, |
|
|
|
$lines |
|
) |
| |
|
protected |
Get latest file lines.
- Parameters
-
string | $file | File |
int | $lines | Lines |
- Returns
- array Array
Definition at line 138 of file DolLogsCollector.php.
The documentation for this class was generated from the following file: