NVelocity seems to be creating a nvelocity.log in the root or our website.
Apparently it is using log4net, but it is not using our current log4net configuration because our logs are in another folder.
How can we change the location of the nvelocity.log file?
After some research, I found that
nvelocityis being initialized using theSimpleLog4NetLogSystem, the existing configuration (this is an old feature on the site) is telling nvelocity to use theNullLogSystem. I think that's why the file is created empty and never modified,SimpleLog4NetLogSystemis used at first but then theNullLogSystem. I think it is some bug on this version.Anyway I found how to change the configuration file, at least in the version we are using (1.0.3324.33234):
In later versions "runtime.log" is specified by the
NVelocity.Runtime.RuntimeConstants.RUNTIME_LOGconstant.Also the Velocity.Init can receive a configuration file so you don't have to hardcode the name of the log file.