sys_log GPL Application

sys_log stands for system logger. This application is a TCP connection oriented iterative server that logs messages from any number of client applications/machines. This server application was built to allow application programs to send messages to a common log file on a single machine.

Unix systems already have a system logger server called syslogd. This system logger, however, has the following limitations:

Starting in GPL package version 1.11-2000.04.03, the system log server uses the socloc interface to manage TCP/IP configuration information. At least one running socloc server is required before starting the system log server.

Before running the system log server, a socloc startup file must be composed and present the in same directory as the system log server binary/executable.

At the moment, the system log server is a normal process and not a daemon/service. I have not got around to adding the extra code to create a daemon/service.

The system log server will write to a primary and alternate log file. The system log server will write to the primary log file when it is not locked or held open. The alternate log file will be written to when the the primary log file has been held open or locked by another process.

The system log server can be compiled for all stated platforms except DOS where there is no TCP IPC and Mac because I have got around to porting any of the socket code to MacOS. Under the Unix operating system, the sys_log application can be compiled using the mksys_log script.

Command Line Syntax

The system log server has the following command line syntax:

sys_log [-q] [-l log_file] [-a alt_log_file] port

Where port is the TCP/IP port that the system log server should listen to. The optional parameter q is used to have the server run quietly without any console/screen output. The optional parameter l is used to specify the primary output log file name and the a parameter is used to specify the alternate output log file name. If either log file names are not specified, the default log file name given in the sys_log code will be assumed. Note that the switch character (a dash/hyphen [-] is shown here) depends on the platform the application is running on.

Goto Top | Future Lab Home | Contact Webmaster | Feedback

Copyright © 1999-2000 Future Lab Inc., Last Updated May 6, 2000