Reference

syslog(3tnm)

Write messages to the system logger.


        
    

    
        

NAME

Tnm::syslog - Write messages to the system logger.

DESCRIPTION

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::syslog command 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::syslog command 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.

SYSLOG OPTIONS

-ident string

The -ident option defines the identification string of the event source. The default value is the string scotty.

SEE ALSO

scotty(1), Tnm(n), Tcl(n)

AUTHORS

Juergen Schoenwaelder <[email protected]>

History

-ident since Debian 2.2 (Potato).