Loggifier.unkrig.de / Tools / Java agent

From unkrig.de
Revision as of 20:12, 1 May 2024 by Aunkrig (talk | contribs) (Created page with "Probably the most convenient way to loggify classes at runtime is to start the JVM with the following command line option: $ java -javaagent:path/to/de.unkrig.loggifier.jar ... The LOGGIFIER plugs into the [http://docs.oracle.com/javase/7/docs/api/java/lang/instrument/package-summary.html "Java programming language agents" API] (available since Java 5) and implements loggification at class-loading time. The agent interprets its argument as (newline-separated) loggif...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Probably the most convenient way to loggify classes at runtime is to start the JVM with the following command line option:

 $ java -javaagent:path/to/de.unkrig.loggifier.jar ...

The LOGGIFIER plugs into the "Java programming language agents" API (available since Java 5) and implements loggification at class-loading time.

The agent interprets its argument as (newline-separated) loggification rules:

 $ java '-javaagent:path/to/de.unkrig.loggifier.jar=CLINIT=INFO
 > ALL=FINER' ...