NVelocity.Runtime.Log
Class SimpleLog4NetLogSystem

Implementation of a simple log4net system that will either latch onto an existing category, or just do a simple rolling file log. Derived from Jon's 'complicated' version :)

Field Summary
log4net.ILog logger
         log4net logging interface

Constructor Summary
SimpleLog4NetLogSystem()
        Initializes a new instance of the SimpleLog4NetLogSystem class.

Method Summary
void Finalize()
         Also do a shutdown if the object is destroy()'d.
void Init(NVelocity.Runtime.RuntimeServices rs)
void LogVelocityMessage(int level, string message)
         logs messages
void shutdown()
         Close all destinations

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


Field Detail

logger

protected log4net.ILog logger

log4net logging interface

Constructor Detail

SimpleLog4NetLogSystem

public SimpleLog4NetLogSystem()

Initializes a new instance of the SimpleLog4NetLogSystem class.

Method Detail

Finalize

protected void Finalize()

Also do a shutdown if the object is destroy()'d.


Init

public void Init(NVelocity.Runtime.RuntimeServices rs)


LogVelocityMessage

public void LogVelocityMessage(int level,
                               string message)

logs messages

Parameters:
level - severity level
message - complete error message

shutdown

public void shutdown()

Close all destinations