Debugging log4j and Setting a Custom Configuration File

Get some meaningful debug information from log4j

Add the following to your VM arguments:

-Dlog4j.debug

And if you’re like me, and log4j is using the wrong config file, you can tell it which one to use:

Tell log4j which config file to use

Add the following to your VM arguments:

-Dlog4j.configuration="file:C:pathtolog4j.xml"

One thought on “Debugging log4j and Setting a Custom Configuration File

  1. ora exacta

    Am aflat aceasta pagina, dupa ce am cautat despre
    Debugging log4j and Setting a Custom Configuration File pe Google.

    Se pare ca informatia dvs e foarte valoroasa, mai ales ca am mai gasit
    aici si despre ora, ora exacta, lucruri interesante si folositoare.

    Mult succes in continuare!

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *