Loggifier.unkrig.de / Tools / Java agent

From unkrig.de
Revision as of 17:26, 5 March 2014 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...")
(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' ...