Java – how to disable speed logging
•
Java
I've been trying to disable the velocity log, and the only way I've found so far is to set the positive result:
runtime.log.logsystem.class=org.apache.veLocity.runtime.log.NullLogSystem
But in lovecity Velocity. In properties Jar inside
I use speed in the context of Web Applications (Tomcat) Is there any way to disable speed (by setting previous properties or anything) without modifying the jar?
No code can be modified
Thank you in advance
Solution
Generally speaking: just in your lovecity Add the following line to properties:
runtime.log.logsystem.class=org.apache.veLocity.runtime.log.NullLogChute
Question for you: it depends on the speed and how the engine is loaded Can you give it a custom Properties file? For example, Solr's velocityresponsewriter has a property called v.properties Look, if method org apache. veLocity. app. VeLocityEngine. Init (attribute) is called somewhere in the code
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码