Home Contents | # os.syslog | OS | Core4 Lua Commands

## SYNOPSIS

os.syslog(message)

## DESCRIPTION

The os.syslog() function writes message to the system message logger. The message is then forwarded to another machine if a syslog host is configured.

In development mode, the syslog messages are displayed by the Core4 Manager. In normal mode, syslog messages are forwarded to UDP port 514 of a configurable syslog host. The syslog is configured via the DHCP server.

For a complete discussion of the syslog features, please see the documentation of the os.openlog() function.

## Notes

The system logging functionality was reused from OpenBSD.

## EXAMPLE

> >
n = 42 os.syslog(string.format("n=%d", n))

## SEE ALSO

os.openlog, os.closelog