<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://unkrig.de/w/index.php?action=history&amp;feed=atom&amp;title=Loggifier.unkrig.de_%2F_Tools_%2F_Command_line_tool</id>
	<title>Loggifier.unkrig.de / Tools / Command line tool - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://unkrig.de/w/index.php?action=history&amp;feed=atom&amp;title=Loggifier.unkrig.de_%2F_Tools_%2F_Command_line_tool"/>
	<link rel="alternate" type="text/html" href="https://unkrig.de/w/index.php?title=Loggifier.unkrig.de_/_Tools_/_Command_line_tool&amp;action=history"/>
	<updated>2026-05-02T12:00:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://unkrig.de/w/index.php?title=Loggifier.unkrig.de_/_Tools_/_Command_line_tool&amp;diff=25&amp;oldid=prev</id>
		<title>Aunkrig: Created page with &quot;Running the LOGGIFIER command line tool with the &#039;&lt;code&gt;-help&lt;/code&gt;&#039; option explains its usage:    Implants logging code into Java class files, and also into class files in   directory trees, ZIP format files (.zip, .jar, .war, .ear, ...) and nested ZIP   format files (e.g. .war in .ear).      Usage:     java de.unkrig.loggifier.Main [ &amp;lt;option&gt; ] ... &amp;lt;file-or-dir&gt;   Transforms the given &lt;file-or-dir&gt; in-place.     java de.unkrig.loggifier.Main [ &amp;lt;option&gt; ] ......&quot;</title>
		<link rel="alternate" type="text/html" href="https://unkrig.de/w/index.php?title=Loggifier.unkrig.de_/_Tools_/_Command_line_tool&amp;diff=25&amp;oldid=prev"/>
		<updated>2024-05-01T19:07:46Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Running the LOGGIFIER command line tool with the &amp;#039;&amp;lt;code&amp;gt;-help&amp;lt;/code&amp;gt;&amp;#039; option explains its usage:    Implants logging code into Java class files, and also into class files in   directory trees, ZIP format files (.zip, .jar, .war, .ear, ...) and nested ZIP   format files (e.g. .war in .ear).      Usage:     java de.unkrig.loggifier.Main [ &amp;lt;option&amp;gt; ] ... &amp;lt;file-or-dir&amp;gt;   Transforms the given &amp;lt;file-or-dir&amp;gt; in-place.     java de.unkrig.loggifier.Main [ &amp;lt;option&amp;gt; ] ......&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Running the LOGGIFIER command line tool with the &amp;#039;&amp;lt;code&amp;gt;-help&amp;lt;/code&amp;gt;&amp;#039; option explains its usage:&lt;br /&gt;
&lt;br /&gt;
  Implants logging code into Java class files, and also into class files in&lt;br /&gt;
  directory trees, ZIP format files (.zip, .jar, .war, .ear, ...) and nested ZIP&lt;br /&gt;
  format files (e.g. .war in .ear).&lt;br /&gt;
  &lt;br /&gt;
  Usage:&lt;br /&gt;
    java de.unkrig.loggifier.Main [ &amp;amp;lt;option&amp;gt; ] ... &amp;amp;lt;file-or-dir&amp;gt;&lt;br /&gt;
  Transforms the given &amp;lt;file-or-dir&amp;gt; in-place.&lt;br /&gt;
    java de.unkrig.loggifier.Main [ &amp;amp;lt;option&amp;gt; ] ... &amp;lt;file-or-dir&amp;gt; ... &amp;lt;dir&amp;gt;&lt;br /&gt;
  Transforms the given &amp;lt;file-or-dir&amp;gt;s into files-and-dirs with the same names in &amp;amp;lt;dir&amp;gt;.&lt;br /&gt;
    java de.unkrig.loggifier.Main [ &amp;amp;lt;option&amp;gt; ] ... &amp;lt;file-or-dir&amp;gt; &amp;amp;lt;file-or-new-dir&amp;gt;&lt;br /&gt;
  Transforms the given &amp;lt;file-or-dir&amp;gt; into &amp;lt;file-or-new-dir&amp;gt;.&lt;br /&gt;
  &lt;br /&gt;
  Valid options:&lt;br /&gt;
    -help           Shows this text.&lt;br /&gt;
    -keep           Keep copies of original files (iff transforming in-place).&lt;br /&gt;
    -selector &amp;lt;glob&amp;gt;&lt;br /&gt;
                    Loggify only classes matching the &amp;amp;lt;glob&amp;gt;.&lt;br /&gt;
    -logging-system &amp;lt;id&amp;gt;&lt;br /&gt;
                    Style of the logging code to inject.&lt;br /&gt;
                    &amp;lt;id&amp;gt; is &amp;#039;jre14&amp;#039;, &amp;#039;log4j&amp;#039;, &amp;#039;log4j2&amp;#039; or &amp;#039;slf4j&amp;#039;. The default is&lt;br /&gt;
                    to guess, based on the classes on the classpath.&lt;br /&gt;
    -rule &amp;lt;rule&amp;gt;    Add the given loggification rule (format see below).&lt;br /&gt;
    -nowarn -quiet -verbose -debug&lt;br /&gt;
    -log &amp;lt;level&amp;gt;:&amp;lt;logger&amp;gt;:&amp;lt;handler&amp;gt;:&amp;lt;formatter&amp;gt;:&amp;lt;format&amp;gt;&lt;br /&gt;
                    Configure the log output of this command line tool.&lt;br /&gt;
 &lt;br /&gt;
  The loggification rule format is as follows:&lt;br /&gt;
    &amp;lt;action&amp;gt;[,&amp;lt;action&amp;gt;]...=&amp;lt;level&amp;gt;[:&amp;lt;expression&amp;gt;]&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;action&amp;gt;:     One of [ALOAD, ARITH, ASTORE, CAST, CATCH, CLINIT, CONST,&lt;br /&gt;
                CONVERT, ENTRY, GET, INVOKE, INSTANCEOF, LENGTH,&lt;br /&gt;
                LOAD, NEW, PUT, RESULT, RETURN, STORE, SWITCH, THROW].&lt;br /&gt;
  &amp;lt;level&amp;gt;:      One of [OFF SEVERE WARNING INFO CONFIG FINE FINER FINEST].&lt;br /&gt;
  &amp;lt;expression&amp;gt;: E.g. &amp;#039;(&amp;lt;eq&amp;gt; || &amp;lt;eq&amp;gt;) &amp;amp;&amp;amp; !&amp;lt;eq&amp;gt;&amp;#039;, where&lt;br /&gt;
  &amp;lt;eq&amp;gt;:         &amp;#039;&amp;amp;lt;var&amp;gt; == &amp;lt;glob&amp;gt;&amp;#039;, where&lt;br /&gt;
  &amp;amp;lt;var&amp;gt;:        is one of [action source classAccess class methodAccess method&lt;br /&gt;
                line type classAndField variable].&lt;br /&gt;
                For actions [CAST INSTANCEOF NEW] also &amp;#039;type&amp;#039;.&lt;br /&gt;
                For actions [GET PUT] also &amp;#039;classAndField&amp;#039;.&lt;br /&gt;
                For actions [LOAD STORE] also &amp;#039;name&amp;#039;.&lt;br /&gt;
  &amp;lt;glob&amp;gt;:       is a &amp;#039;glob pattern&amp;#039; in single quotes like &amp;#039;*main*&amp;#039;.&lt;br /&gt;
  &lt;br /&gt;
  The exit status is 1 iff errors occurred during loggification.&lt;/div&gt;</summary>
		<author><name>Aunkrig</name></author>
	</entry>
</feed>