namespace Unix

The main unix namespace, it provides a standard unix system interface

namespace contents
Classes
class SyslogStream - This is Stream returned by Unix.openlog( ). Do not create instances of this class directly.
Functions
function openlog(string,number,number) - Open a connection to syslog facility
Variables
variable LOG_AUTHPRIV - Authorisation/security log facility
variable LOG_CONS - Log to the system console if unable to write to syslog
variable LOG_CRON - Cron daemon log facility
variable LOG_DAEMON - Daemon log facility
variable LOG_FTP - FTP server log facility
variable LOG_KERN - Kernel log facility
variable LOG_LOCAL0 - Local log facility 0
variable LOG_LPR - Line printer subsystem log facility
variable LOG_MAIL - Mail system log facility
variable LOG_NDELAY - Open the syslog connection immediately
variable LOG_NEWS - News server log facility
variable LOG_PERROR - Log to stderr as well as to the system log
variable LOG_PID - Include process ID with log messages
variable LOG_SYSLOG - Internal Syslog log facility
variable LOG_USER - User level log facility
variable LOG_UUCP - UUCP subsystem log facility

Functions

function openlog Click to go up to the list
Open a connection to syslog facility
Declaration:
    function openlog( string ident, number option, number facility )
Parameters:
    Parameter #1: string ident - String that will be added to each message, usually the program name
    Parameter #2: number option - Options is an OR of the following: Unix.LOG_CONS, Unix.LOG_PID, Unix.LOG_NDELAY, Unix.LOG_PERROR
    Parameter #3: number facility - Describes what facility is logging. It can be any one of: Unix.LOG_KERN, Unix.LOG_USER, Unix.LOG_MAIL, Unix.LOG_DAEMON, Unix.LOG_SYSLOG, Unix.LOG_LPR, Unix.LOG_NEWS, Unix.LOG_UUCP, Unix.LOG_CRON, Unix.LOG_AUTHPRIV, Unix.LOG_FTP, or Unix.LOG_LOCAL0 to Unix.LOG_LOCAL7.

Variables

number LOG_AUTHPRIV Click to go up to the list
Authorisation/security log facility
Description:
Specifying this value as the facility in an openlog() call will cause messages to be logged with a facility value indicating that they are concerning authorisation of users or general security issues.

number LOG_CONS Click to go up to the list
Log to the system console if unable to write to syslog
Description:
Using this flag with openlog() causes log messages to be written to the system console if it is unable to write them to the system logger.

number LOG_CRON Click to go up to the list
Cron daemon log facility
Description:
Specifying this value as the facility in an openlog() call will cause messages to be logged with a facility value indicating that they are from the Cron daemon. Not recommended unless you are reimplementing the cron daemon in Ferite.

number LOG_DAEMON Click to go up to the list
Daemon log facility
Description:
Specifying this value as the facility in an openlog() call will cause messages to be logged with a facility value indicating that they come from any daemon which doesn't have a more specific facility number that it can use.

number LOG_FTP Click to go up to the list
FTP server log facility
Description:
Specifying this value as the facility in an openlog() call will cause messages to be logged with a facility value indicating that they are from the FTP server.

number LOG_KERN Click to go up to the list
Kernel log facility
Description:
Specifying this value as the facility in an openlog() call will cause messages to be logged with a facility value indicating that they come from the system kernel. Not recommended unless you are reimplementing klogd in Ferite.

number LOG_LOCAL0 Click to go up to the list
Local log facility 0
Description:
Specifying this value as the facility in an openlog() call will cause messages to be logged with a facility value indicating that they are from the locally chosen facility value number 0. There are seven other locally chosen values available (LOG_LOCAL1 to LOG_LOCAL7).

number LOG_LPR Click to go up to the list
Line printer subsystem log facility
Description:
Specifying this value as the facility in an openlog() call will cause messages to be logged with a facility value indicating that they are from the line printer subsystem.

number LOG_MAIL Click to go up to the list
Mail system log facility
Description:
Specifying this value as the facility in an openlog() call will cause messages to be logged with a facility value indicating that they come from the email subsystem.

number LOG_NDELAY Click to go up to the list
Open the syslog connection immediately
Description:
Using this flag with openlog() causes it to open the connection to the system logger instead of waiting until the first message is written to the log.

number LOG_NEWS Click to go up to the list
News server log facility
Description:
Specifying this value as the facility in an openlog() call will cause messages to be logged with a facility value indicating that they are from the news server.

number LOG_PERROR Click to go up to the list
Log to stderr as well as to the system log
Description:
Using this flag with openlog() causes it to send log messages to stderr as well as to the system log.

number LOG_PID Click to go up to the list
Include process ID with log messages
Description:
Using this flag with openlog() causes the log messages it generates to include the process ID number.

number LOG_SYSLOG Click to go up to the list
Internal Syslog log facility
Description:
Specifying this value as the facility in an openlog() call will cause messages to be logged with a facility value indicating that they are internal messages from the Syslog system itself. Not recommended unless you are reimplementing the syslog daemon in Ferite.

number LOG_USER Click to go up to the list
User level log facility
Description:
Specifying this value as the facility in an openlog() call will cause messages to be logged with a facility value indicating that they come from an ordinary user level program (not a daemon- use LOG_DAEMON for that).

number LOG_UUCP Click to go up to the list
UUCP subsystem log facility
Description:
Specifying this value as the facility in an openlog() call will cause messages to be logged with a facility value indicating that they are from the UUCP subsystem.

Automatically generated at 12:08PM, Wednesday 25 May 2005 by feritedoc.