You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Javier Velez <jv...@lsi.uned.es> on 2006/06/28 19:33:04 UTC

Not generate the velocity Log file

Hi,

I need to tell velocity not to generate any log file. I have tried 
setting the velocity properties such as it is explained in the velocity 
developers manual. I have already get some reduction on the ammount of 
information within the log file but velocity creates it again. Someone 
can help me, please!!!

This is the content of my log file:

Wed Jun 28 12:12:41 CEST 2006  [debug] AvalonLogSystem initialized using 
logfile '/usr/local/tomcat/webapps/pelican/velocity.log'
Wed Jun 28 12:12:41 CEST 2006   [info] 
**************************************************************
Wed Jun 28 12:12:41 CEST 2006   [info] Starting Jakarta Velocity v1.4-rc1
Wed Jun 28 12:12:41 CEST 2006   [info] RuntimeInstance initializing.
Wed Jun 28 12:12:41 CEST 2006   [info] Default Properties File: 
org\apache\velocity\runtime\defaults\velocity.properties
Wed Jun 28 12:12:41 CEST 2006   [info] Trying to use logger class 
org.apache.velocity.runtime.log.AvalonLogSystem
Wed Jun 28 12:12:41 CEST 2006   [info] Using logger class 
org.apache.velocity.runtime.log.AvalonLogSystem
Wed Jun 28 12:12:41 CEST 2006   [info] Default ResourceManager 
initializing. (class 
org.apache.velocity.runtime.resource.ResourceManagerImpl)
Wed Jun 28 12:12:41 CEST 2006   [info] Resource Loader Instantiated: 
org.apache.velocity.runtime.resource.loader.FileResourceLoader
Wed Jun 28 12:12:41 CEST 2006   [info] FileResourceLoader : 
initialization starting.
Wed Jun 28 12:12:41 CEST 2006   [info] FileResourceLoader : adding path '.'
Wed Jun 28 12:12:41 CEST 2006   [info] FileResourceLoader : 
initialization complete.
Wed Jun 28 12:12:41 CEST 2006   [info] ResourceCache : initialized. 
(class org.apache.velocity.runtime.resource.ResourceCacheImpl)
Wed Jun 28 12:12:41 CEST 2006   [info] Default ResourceManager 
initialization complete.
Wed Jun 28 12:12:41 CEST 2006   [info] Loaded System Directive: 
org.apache.velocity.runtime.directive.Literal
Wed Jun 28 12:12:41 CEST 2006   [info] Loaded System Directive: 
org.apache.velocity.runtime.directive.Macro
Wed Jun 28 12:12:41 CEST 2006   [info] Loaded System Directive: 
org.apache.velocity.runtime.directive.Parse
Wed Jun 28 12:12:41 CEST 2006   [info] Loaded System Directive: 
org.apache.velocity.runtime.directive.Include
Wed Jun 28 12:12:41 CEST 2006   [info] Loaded System Directive: 
org.apache.velocity.runtime.directive.Foreach
Wed Jun 28 12:12:41 CEST 2006   [info] Created: 20 parsers.
Wed Jun 28 12:12:41 CEST 2006   [info] Velocimacro : initialization 
starting.
Wed Jun 28 12:12:41 CEST 2006   [info] Velocimacro : adding VMs from VM 
library template : VM_global_library.vm
Wed Jun 28 12:12:41 CEST 2006  [error] ResourceManager : unable to find 
resource 'VM_global_library.vm' in any resource loader.
Wed Jun 28 12:12:41 CEST 2006   [info] Velocimacro : error using  VM 
library template VM_global_library.vm : 
org.apache.velocity.exception.ResourceNotFoundException: Unable to find 
resource 'VM_global_library.vm'
Wed Jun 28 12:12:41 CEST 2006   [info] Velocimacro :  VM library 
template macro registration complete.
Wed Jun 28 12:12:41 CEST 2006   [info] Velocimacro : allowInline = true 
: VMs can be defined inline in templates
Wed Jun 28 12:12:41 CEST 2006   [info] Velocimacro : 
allowInlineToOverride = false : VMs defined inline may NOT replace 
previous VM definitions
Wed Jun 28 12:12:41 CEST 2006   [info] Velocimacro : allowInlineLocal = 
false : VMs defined inline will be  global in scope if allowed.
Wed Jun 28 12:12:41 CEST 2006   [info] Velocimacro : messages on  : VM 
system will output logging messages
Wed Jun 28 12:12:41 CEST 2006   [info] Velocimacro : autoload on  : VM 
system will automatically reload global library macros
Wed Jun 28 12:12:41 CEST 2006   [info] Velocimacro : initialization 
complete.
Wed Jun 28 12:12:41 CEST 2006   [info] Velocity successfully started.



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.5/377 - Release Date: 27/06/2006


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Re: Not generate the velocity Log file

Posted by Glenn Holmer <gh...@weycogroup.com>.
On Wednesday 28 June 2006 12:33, Javier Velez wrote:
> I need to tell velocity not to generate any log file. I have tried
> setting the velocity properties such as it is explained in the
> velocity developers manual. I have already get some reduction on the
> ammount of information within the log file but velocity creates it
> again. Someone can help me, please!!!

Tried this?

runtime.log.logsystem.class=org.apache.velocity.runtime.log.NullLogSystem

-- 
____________________________________________________________
Glenn Holmer                          gholmer@weycogroup.com
Software Engineer                        phone: 414-908-1809
Weyco Group, Inc.                          fax: 414-908-1601

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org