The main log file of the micropvr process
/var/log/micropvr/micropvr.log — the main log file. The messages are as follows:
%timestamp%log level%module%function%%PID%(%message code%)%message text%
Example:
Tue Mar 14 06:31:21 2017 DEBUG RECORDS MANAGER CheckWritingFilesSizes[18527]: file size check: ch_id-76_time-1489462267_task_id-962839 - 0 bytes
Possible message levels in order of increasing log detail (each level includes previous levels):
- CRITICAL — critical errors that directly affect the operation of the micropvr process: process copying errors, database entries, etc.
- ERROR & #8212; significant errors: configuration reading errors, space shortage messages, etc.
- WARNING — Warnings: API call errors, task restart messages due to error, etc.
- INFO — newsletters.
- DEBUG & #8212; minor messages useful for debugging.
- EXTENDED & #8212; access to the database.
Micropvr state log
If the parameter log-state-period more 0, then micropvr with a given frequency in minutes will keep the state log /var/log/micropvr/micropvr_state.log.
View of log records:
Log OK: 12/10 13:28:59 Mem used: 958868 KiB, mem free: 3099672 KiB Swap used: 127652 KiB, swap free: 8257880 KiB CPU LA1: 0.5 Content requests: 0 requests in 59 seconds, 0.0 per second Successful requests: 0 requests in 59 seconds, 0.0 per second _______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ | CID | CHANNEL NAME | SOURCE | START TIME | STOP TIME | LOCK TIME | REPEAT | LOCATION | PRIOR | STATUS | —--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | 1 | channel1 | udp:// @239.1.2.3:1234 | 12/10 15:00:00 | 12/10 16:00:00 | 13/10 16:00:00 | 3600 secs | /tmp/pvr/ch_1 | 3 | NEW| | 2 | channel2 | udp:// @239.1.2.3:1235 | 12/10 15:00:00 | 12/10 16:00:00 | 13/10 16:00:00 | 3600 secs | /tmp/pvr/ch_2 | 3 | NEW| | 3 | channel3 | udp:// @239.1.2.3:1236 | 12/10 13:00:00 | 12/10 14:00:00 | 14/10 14:00:00 | 3600 secs | /tmp/pvr/ch_3 | 3 | STARTED | | 3 | channel3-sd | udp:// @239.1.2.3:1236 | 12/10 13:00:00 | 12/10 14:00:00 | 14/10 14:00:00 | 3600 secs | /ssd/pvr/ch_3 | 5 | STARTED | | 4 | channel4 | udp:// @239.1.2.3:1236 | 12/10 13:29:10 | 12/10 14:00:00 | 14/10 14:00:00 | 3600 secs | /ssd/pvr/ch_4 | 5 | POSTPONED | | 5 | channel5 | udp:// @239.1.2.3:1240 | 12/10 14:20:00 | 12/10 17:20:00 | 15/10 17:20:00 | no repeat | /ssd/pvr/ch_5 | 5 | NEW| ________________________________________________________________________________________________________________________________________________________________________ | PATH | FREE SPACE | RESERVED | AVAILABLE | —--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | / | 393849 MiB | 30000 MiB | 363849 MiB | | /ssd | 128350 MiB | 30000 MiB | 98350 MiB |
Task table fields:
- CID & #8212; channel identifier specified when creating the task.
- CHANNEL NAME & #8212; channel name given when creating the task.
- SOURCE — source of the recording.
- START TIME — actual start time of recording (in server time zone).
- STOP TIME & #8212; End time (in server time zone).
- LOCK TIME — the time before which automatic deletion of a record is blocked (in the server time zone).
- REPEAT & #8212; the task repetition period may not coincide with the actual recording duration. If a new task has already been established, it is indicated repeatedif the task is non-periodic, it is indicated no, no. no, no. no. no. no. no. no. no.
- LOCATION — directory recording.
- PRIOR & #8212; Record priority. When you request offset and file will be given a record with high priority.
- Status & #8212; status of the task.
Possible statuses:
- NEW & #8212; the task has not yet started and is on the waiting list.
- POSTPONED & #8212; similar to NEW, but the task was restarted due to an error.
- STARTING & #8212; the task is in the process of being launched.
- FAILED & #8212; task execution error.
- STARTED & #8212; the task is in progress, recording is done.
- UNKNOWN & #8212; other status.
Log recorder
recorder — additional log file of recorder processes. Activated by option recorder in a micropvr configuration. The messages are as follows:
%timestamp%log level%function%[%PID%](%message code%)%message text%
