The comment on the method has the following description:

> string to be used as the template name for log messages in case of error
>

The main purpose of the logTag parameter is to give you more context where
the error is coming from, however there are a few internal uses for caching
which I am not completely sure on. If you are just doing a simple evaluate
that doesn't include any other templates then an empty string is fine just
like the unit tests are doing.

http://github.com/castleproject/NVelocity/blob/master/src/NVelocity/App/Velocity.cs
http://github.com/castleproject/NVelocity/blob/master/src/NVelocity.Tests/Test/VelocityTest.cs

On Fri, Jul 16, 2010 at 11:15 AM, An Phu <[email protected]> wrote:

> Hello,
>
> What is the purpose of the logTag param in the Velocity.Evaluate
> method?  Can I pass an empty string or a null value?
>
> TIA,
> An
>
> --
> You received this message because you are subscribed to the Google Groups
> "Castle Project Users" group.
> To post to this group, send email to [email protected]
> .
> To unsubscribe from this group, send email to
> [email protected]<castle-project-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/castle-project-users?hl=en.
>
>


-- 
Jono

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to