dolibarr 19.0.3
|
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. | |
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 98 of file DolLogsCollector.php.
References getDolGlobalInt(), getLevels(), and getStorageLogs().
DolLogsCollector::getLevels | ( | ) |
Get the log levels from psr/log.
Definition at line 224 of file DolLogsCollector.php.
DolLogsCollector::getLogs | ( | $file | ) |
Search a string for log entries.
string | $file | File |
Definition at line 200 of file DolLogsCollector.php.
References getLevels().
Referenced by getStorageLogs().
DolLogsCollector::getLogsFile | ( | ) |
Get the path to the logs file.
Definition at line 130 of file DolLogsCollector.php.
Referenced by __construct().
DolLogsCollector::getStorageLogs | ( | $path | ) |
Get logs.
string | $path | Path |
Definition at line 143 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 164 of file DolLogsCollector.php.
Referenced by getStorageLogs().