SNR S2995G-48TX-POE [3/12] Priority

SNR S2995G-48TX-POE [3/12] Priority
Information Center Configuration Chapter 1 Overview
1-2
logbuffer Log buffer
logfile <1-4> Log file
The Settings for the output directions are independent of each other, but the
information center needs to be opened before the settings take effect.
1.4 Source information format
The format of the source information is as follows
<priority>timestamp sysname module/level/digest:content
The angle brackets (<>), spaces, slashes (/), and colon (:) are required in the above
format when configuring the log prefix; where angle brackets are valid only when the
output direction is the log host.
An example of the log format to be output to the log host is shown below:
<188>Sep 28 15:33:46:235 2005 MyDevice SHELL/5/LOGIN: Console login from con0
Another example of the log format without prefix is shown below:
Console login from con0
Each field is described in detail below:
1) Priority
The priority is calculated as follows
:
facility*8+severity-1
Facility can be local0 ~ local7, default is local7. The value is 16-23
.
Severity ranges from 1 to 8. For more information about severity, refer to Table 1-1.
There is no character between the priority and the timestamp. The priority is valid
only when the information is sent to the log host.
The origin of facililty is worth mentioning. Facility is a unique attribute when
information is output to the log host, and has no meaning for other output directions. Its
value local0 ~ local7 comes from the log type which the early syslog protocol defined for
the UNIX log host. All types are as follows:
Table 1-3
facility code
kernel messages 0
user-level messages 1
mail system 2
Скачать