Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

LogImpl.Info�Method�(Object)

Logs a message object with the INFO level.

[Visual�Basic]
Overridable�Overloads�Public�Sub�Info( _
���ByVal message�As�Object�_
)�_
����Implements�ILog.Info
[C#]
public�virtual�void�Info(
���objectmessage
);

Parameters

message
The message object to log.

Implements

ILog.Info

Remarks

This method first checks if this logger is INFO enabled by comparing the level of this logger with the INFO level. If this logger is INFO enabled, then it converts the message object (passed as parameter) to a string by invoking the appropriate IObjectRenderer. It then proceeds to call all the registered appenders in this logger and also higher in the hierarchy depending on the value of the additivity flag.

WARNING Note that passing an Exception to this method will print the name of the Exception but no stack trace. To print a stack trace use the Info form instead.

See Also

LogImpl Class | log4net.Core Namespace | LogImpl.Info Overload List