LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   java with syslog (https://www.linuxquestions.org/questions/linux-software-2/java-with-syslog-600061/)

arthik_tn 11-16-2007 03:36 AM

java with syslog
 
Hi,

I want to know whether from java is it possible to call the syslog utility of linux to log messages.

thanks

acid_kewpie 11-16-2007 04:17 AM

yes it's totally possible, just google for "java syslog" and you'll see a number of client apis

arthik_tn 11-16-2007 05:24 AM

Hi acid_kewpie,

Thanks for your reply but all the api's are based on syslog utilities and I need to used the syslog.conf and linux syslog in my java program and I shell script we can use logger to log the message and If it is application the same logger can be used?

acid_kewpie 11-16-2007 05:38 AM

you app has no interest in syslog.conf syslogd on your system is just an implementation of the syslog standard, and your app needs to talk protocol and standards, not to a specfic program. As above, there are very clear libraries to do what you need. you should have already found yourself on this page already http://protomatter.sourceforge.net/l...og/Syslog.html for example

arthik_tn 11-16-2007 07:48 AM

Hi,

Thanks for your reply. My requirement is , I need to send all the messages to the syslogd server which is running in the linux m/c .


All times are GMT -5. The time now is 12:28 PM.