dolibarr 21.0.0-alpha
|
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 34 of file DolLogsCollector.php.
DolLogsCollector::__construct | ( | $path = null, | |
$name = 'logs' ) |
Constructor.
string | $path | Path |
string | $name | Name |
Definition at line 56 of file DolLogsCollector.php.
References getDolGlobalInt(), and getLogsFile().
DolLogsCollector::collect | ( | ) |
Return collected data.
Definition at line 97 of file DolLogsCollector.php.
References getDolGlobalInt(), getLevels(), and getStorageLogs().
DolLogsCollector::getLevels | ( | ) |
Get the log levels from psr/log.
Definition at line 225 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 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 | ( | ) |
Return widget settings.
Definition at line 71 of file DolLogsCollector.php.
|
protected |
Get latest file lines.
string | $file | File |
int | $lines | Lines |
Definition at line 164 of file DolLogsCollector.php.
Referenced by getStorageLogs().