Trace.java is a package used by Java programmers, testers, server administrators and others to understand what happened during the execution of a program. It doesn't generate tracing statements automatically; programmers have to add them. Trace messages go into an in-core ring buffer, a disk log, or both. The disk log can be fixed size with backups. What amount of detail gets logged can be controlled at runtime or launch time. The ring buffer and disk log can be controlled separately. Different subsystems of the code can be controlled independently.
ALF is a native logging framework for Java with the unique advantage of supporting automated method tracing. This platform-independent library allows developers to debug their applications quickly without adding any code. By simply adding an argument to the JVM, you will get immediate method tracing, which can be filtered by package or class and sent to the console or a file. You can also use the ALF logging library to integrate information, warning, error, or exception statements into the output.