i am currently trying to log data to syslog and i am using "Runtime.getRuntime().exec" statement in java to do that. The full statement is:
Runtime.getRuntime().exec("logger " + data.toString());
Now this works perfectly but it seems too easy and i wanted to know if directly using this has bad effects. Also if there are better ways to log data (except for log4j library) to syslog i am open to it. Thanks.