NVelocity.Runtime.Log
Class Log4NetExtensionLogSystem

Simple wrapper for the servlet log

Constructor Summary
Log4NetExtensionLogSystem()
         Default constructor, fine when NVelocity will be called from the same app domain.
Log4NetExtensionLogSystem(string category)
         to be used when NVelocity will be called from the same app domain and you want to name the category used for NVelocity messages.
Log4NetExtensionLogSystem(System.Reflection.Assembly assembly, string category)
         specify named category and domain that logging will participate with (needed when using NVelocity in environment where it will be hosted by external process; i.e. IIS or COM+).
Log4NetExtensionLogSystem(System.Reflection.Assembly assembly)
         specify domain that logging will participate with (needed when using NVelocity in environment where it will be hosted by external process; i.e. IIS or COM+)

Method Summary
void Init(NVelocity.Runtime.RuntimeServices rs)
         Init
void LogVelocityMessage(int level, string message)
         Send a log message from NVelocity.

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Constructor Detail

Log4NetExtensionLogSystem

public Log4NetExtensionLogSystem()

Default constructor, fine when NVelocity will be called from the same app domain.


Log4NetExtensionLogSystem

public Log4NetExtensionLogSystem(string category)

to be used when NVelocity will be called from the same app domain and you want to name the category used for NVelocity messages.

Parameters:
category - category to use for log messages instead of the name of the actual class

Log4NetExtensionLogSystem

public Log4NetExtensionLogSystem(System.Reflection.Assembly assembly,
                                 string category)

specify named category and domain that logging will participate with (needed when using NVelocity in environment where it will be hosted by external process; i.e. IIS or COM+).

Parameters:
assembly -
category -

Log4NetExtensionLogSystem

public Log4NetExtensionLogSystem(System.Reflection.Assembly assembly)

specify domain that logging will participate with (needed when using NVelocity in environment where it will be hosted by external process; i.e. IIS or COM+)

Parameters:
assembly -
Method Detail

Init

public void Init(NVelocity.Runtime.RuntimeServices rs)

Init


LogVelocityMessage

public void LogVelocityMessage(int level,
                               string message)

Send a log message from NVelocity.