| dolibarr 20.0.5
    | 
DolLogsCollector class. More...


| Public Member Functions | |
| __construct ($path=null, $name='logs') | |
| Constructor. | |
| getWidgets () | |
| Return widget settings. | |
| collect () | |
| Return collected data. | |
| getLogsFile () | |
| Get the path to the logs file. | |
| getStorageLogs ($path) | |
| Get logs. | |
| getLogs ($file) | |
| Search a string for log entries into the log file. | |
| getLevels () | |
| Get the log levels from psr/log. | |
| Protected Member Functions | |
| tailFile ($file, $lines) | |
| Get latest file lines. | |
DolLogsCollector class.
Definition at line 33 of file DolLogsCollector.php.
| DolLogsCollector::__construct | ( | $path = null, | |
| $name = 'logs' ) | 
Constructor.
| string | $path | Path | 
| string | $name | Name | 
Definition at line 55 of file DolLogsCollector.php.
References getDolGlobalInt(), and getLogsFile().
| DolLogsCollector::collect | ( | ) | 
Return collected data.
Definition at line 96 of file DolLogsCollector.php.
References getDolGlobalInt(), getLevels(), and getStorageLogs().
| DolLogsCollector::getLevels | ( | ) | 
Get the log levels from psr/log.
Definition at line 223 of file DolLogsCollector.php.
| DolLogsCollector::getLogs | ( | $file | ) | 
Search a string for log entries into the log file.
Used when debug bar scan log file (very slow).
| string | $file | File | 
Definition at line 198 of file DolLogsCollector.php.
References getLevels().
Referenced by getStorageLogs().
| DolLogsCollector::getLogsFile | ( | ) | 
Get the path to the logs file.
Definition at line 128 of file DolLogsCollector.php.
Referenced by __construct().
| DolLogsCollector::getStorageLogs | ( | $path | ) | 
Get logs.
| string | $path | Path | 
Definition at line 141 of file DolLogsCollector.php.
References getLogs(), and tailFile().
Referenced by collect().
| DolLogsCollector::getWidgets | ( | ) | 
| 
 | protected | 
Get latest file lines.
| string | $file | File | 
| int | $lines | Lines | 
Definition at line 162 of file DolLogsCollector.php.
Referenced by getStorageLogs().