log4j is how you do that from a java app unless you want to deal with JNI native code wrappers.
Not a member of The Register? Create a new account here.
Remember me on this computer? Post anonymously?