How to turn off Spring 3 debug logging?

前端 未结 2 1945
长发绾君心
长发绾君心 2021-01-02 14:57

I would like to turn off log4j logging for Spring 3.1 while leaving things on debug for my own code.

I tried sticking this line into my log4j.properties:

<         


        
2条回答
  •  盖世英雄少女心
    2021-01-02 15:41

    I figured this out.

    In my classpath I have a directory C:\Classes for convenience when I am experimenting with things. I had another log4.properties file there, which was superseding the one packaged in my WAR making it look like the technique below wasn't working. I renamed the log4.properties in my C:\Classes and all is well.

    Thanks to everyone who took a look and thanks to the people at Spring Source who made doing this necessary. It is good to know that an extensive level of debugging is easily available to me when I want it instead of just getting a black box.

提交回复
热议问题