This section covers user interface and what you currently are able to do with logs in PHPLogger.
There are options to view log files, specific log records, filter them and set up alarms.
When you write logs into PHPLogger client, they get stacked into Files. A file is a collection of log records from a single process. Each file has the following attributes which are available in the Files view:
- File ID - a pseudo-unique identifier for the process the logs were collected from
- Started At - when log collection started
- Worked - how long it took for all the logs to be written (this is the difference between first and last file lines)
- Lines - amount of messages written during single file collection (process)
- Interface - currently 2 different interfaces are detected during log collection: web server / command-line
- Host - the host of the machine logs were collected from
- File - script / file which initiated log collection
- Severities - how many lines were written with each of the available severities
There are several controls in this view, which help you work around logs.
- Filters button - opens a filters window
- Clear button - clears all the filters from the page
- New alarm button - help to create new alarm
You can filter log files by file properties. Filters window allows you to choose what to filter and how.
Once you apply the chosen filters, the changes are saved to URL, so you can save the link at come back to it later.
Alarms can be set up from the Files page. You pick your filters and then press to create new alarm.
Alarms are triggered according to the selected period (every 5min / 15min / 60min / etc). When there is at least single file by your filters for the selected period, you will get an email notification with details.
You can manage your alarms from the "Alarms" view.
Each page has a special input field and the top of the page. After inputting File ID there you will be taken to then details view of the file. For each process File ID can be acquired from the PHPLogger client.
The detailed information screen is fairly simple. It shows basic information about the collected file and lists all of the lines in it.