|
openmediavault
4.0 (Arrakis)
The open network attached storage solution
|
Public Member Functions | |
| __construct ($id) | |
| getFileName () | |
| getFilePath () | |
| getCommand () | |
| getRegex () | |
| getColumns () | |
Static Public Member Functions | |
| static | registerSpecification ($id, array $spec) |
| static | assertIsRegistered ($id) |
This class that handles the log file specification.
| OMV\System\LogFileSpec::__construct | ( | $id | ) |
Constructor
| id | The identifier of the log file specification. |
|
static |
Checks if a log file specification is registered.
| id | The identifier of the log file specification. |
| OMV\System\LogFileSpec::getColumns | ( | ) |
Get the column configuration.
| OMV\System\LogFileSpec::getCommand | ( | ) |
Get the command line to be executed to get the log file content.
| OMV\System\LogFileSpec::getFileName | ( | ) |
Get the file name of the log file, e.g. 'syslog'.
| OMV\System\LogFileSpec::getFilePath | ( | ) |
Get the file path of the log file, e.g. '/var/log/syslog'.
| OMV\System\LogFileSpec::getRegex | ( | ) |
Get the regular expression used to parse a log file line.
|
static |
Register a new log file specification.
| id | The identifier of the log file specification, e.g. 'syslog' or 'auth'. |
| spec | The log file specification. |
1.8.13