syslog3tnm
Write messages to the system logger.
Overview
The Tnm::syslog command writes messages to the local system logging facility. On Unix platforms, the message is written to the syslog daemon. On Windows platforms, the message is written to the Windows event logging facility.
Every message has an associated priority level. Allowed priority levels are:
emergency-
A panic condition. This is normally broadcast to all users.
alert-
A condition that should be corrected immediately, such as a corrupted system database.
critical-
Critical conditions, such as hard device errors.
error-
Errors messages.
warning-
Warning messages.
notice-
Conditions that are not error conditions, but that may require special handling.
info-
Informational messages.
debug-
Messages that contain information normally of use only when debugging a program.
Not all system logging facilities support all priority levels. The Tnm extension will automatically convert the priorities listed above into levels understood by the local system logging facility if needed.
DNS command
Tnm::syslog[options]-
Invoking the
Tnm::syslogcommand with options but without any command arguments allows to retrieve and change the default values. See the description of supported options below. Default values are bound to a Tcl interpreter which allows to have multiple Tcl interpreter with different defaults.
Tnm::syslog[options] level message-
The
Tnm::syslogcommand writes a message to the system logging facility. Further processing of the message depends on the priority level of the message and the configuration of the system logging facility.
Options
-
-ident string -
The
-identoption defines the identification string of the event source. The default value is the string scotty.
Releases
4 releases since Debian 2.0 (Hamm); the text changed 2 times.
-ident since Debian 2.2 (Potato).