Download Latest Version syslog4me-src.jar (5.8 kB)
Email in envelope

Get an email when there's a new version of Syslog4ME

Home / OldFiles
Name Modified Size InfoDownloads / Week
Parent folder
SyslogExample.zip 2005-03-27 17.8 kB
README.txt 2005-03-27 815 Bytes
Totals: 2 Items   18.6 kB 0
Readme.txt


To use syslog4me you should include these fields in you applications JAD / JAR
Syslog-Host: 127.0.0.1  [The server that is listening for messages] 
Identifier: 12345	[Client identifier]
Syslog-Level: DEBUG	[Output level can be one one the defined levels in UPPERCASE]

Logging levels
Emergency	: system is unusable
Alert		: action must be taken immediately
Critical	: critical conditions
Error		: error conditions
Warning		: warning conditions
Notice		: normal but significant condition
Informational	: informational messages
Debug		: debug-level messages


Actual usage.

//Creation
logger = new BSDSyslog( this );

//Start logging 
logger.startupLogger( );

//Send a log message 
logger.log( Logger.INFO, "MIDlet started");

//Stop sending messages
logger.stopLogger();
Source: README.txt, updated 2005-03-27