Search code examples
javajackrabbit

How to disable jackrabbit.log_IS_UNDEFINED in jackrabbit-standalone-2.4.2.jar


I have created a code using jackrabbit-standalone-2.4.2.jar and i am getting jackrabbit.log_IS_UNDEFINED.log file in the project directory. This log file is very huge(close to 1 GB). I want to disable it but i dont know how. Does anybody have any idea to deal with situation?


Solution

  • To remove this file you have to (as stated in the file name) to define the logger that you want to use.

    Since jackrabbit is relying on slf4j, you should configure properly a logger for it.

    For instance you can add to you dependencies the lf4j-log4j12 implementation, plus a log4j.properties in your classpath.

    You can also configure any other slf4j implementation.