[Contents] [Prev] [Next] [Index] [Report an Error]

jcs:syslog() Function

The jcs:syslog() function logs messages to the syslog with a specified priority.

The function syntax is as follows:

expr jcs:syslog(priority, “message”, <$goesto>, <$syslog>));

Where:

The message added to the syslog file is specified within the [system syslog] hierarchy of the router configuration file.

Table 17: Facility Strings

Facility StringDescriptionNumeric Value

auth

Authorization system

4

change

Configuration change log

22

conflict

Configuration conflict log

21

daemon

Various system processes

3

external

Local external applications

18

firewall

Firewall filtering system

19

ftp

FTP processes

11

interact

Commands executed by thye UI

23

pfe

Packet forwarding engine

20

user

User processes

1

Table 18: Severity String

Severity StringDescriptionNumeric Value

alert

Conditions that should be corrected immediately

1

crit

Critical conditions

2

debug

Debug messages

7

emerg or panic

Panic conditions

0

err or error

Error conditions

3

info

Informational messages

6

notice

Conditions that should be specially handled

5

warn or warning

Warning messages

4


[Contents] [Prev] [Next] [Index] [Report an Error]