aspose file tools*
The moose likes Other Open Source Projects and the fly likes Cannot log into UNIX Syslog with log4j Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Cannot log into UNIX Syslog with log4j" Watch "Cannot log into UNIX Syslog with log4j" New topic
Author

Cannot log into UNIX Syslog with log4j

Alex Sharkoff
Ranch Hand

Joined: Apr 11, 2004
Posts: 209
Hi all,

I am trying to log application error messages into syslog using log4j and so far I have no success. I've read and searched a lot of information but could not find an answer.

PROBLEM DESCRIPTION:

The application runs on the same machine as syslog. That is what my log4j.properties file looks like:




While file loggers (InfoLogger and ErrorLogger) log the messages into their respective files, the syslog logger (SyslogLogger) does not:



On the same unix box I ran the following unix command in order to test whether can log into syslog at all:


and it was successful - I could see this "just testing syslog functionality" in a syslog file.



Thank you to all in advance for your thoughts on how to solve this problem.


Kind regards,

Alex.
[ February 10, 2005: Message edited by: Alex Sharkoff ]

Alex (SCJP 1.4, SCBCD 1.3, SCWCD 1.4, SCJD 1.4)
Alex Sharkoff
Ranch Hand

Joined: Apr 11, 2004
Posts: 209
Hi all,

I am still trying to solve "cannot log into UNIX Syslog" (please see original email below). I've turned the log4j debug on (with the -Dlog4j.debug option) and that is what I have



As you can see all looks all right. What would you recommend I should do next? I really need some help on how to solve this problem.


Thanks to all in advance,

Alex.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cannot log into UNIX Syslog with log4j
 
Similar Threads
Help log4j SysLogAppender
Help log4j SysLogAppender
Log4J Debug levels and over-riding
Reading logs from Unix server
HOw to create user defined log file for an application