Exago .NET API Documentation
Warn(Object,Exception) Method
Example 
WebReports.Api.Common Namespace > Logger Class > Warn Method : Warn(Object,Exception) Method
The message to write to the log.
An exception, if applicable, whose details will be included with the message.
Write a Warn level message to the log and include details of a thrown exception.
Syntax
public void Warn( 
   System.object message,
   System.Exception exception
)

Parameters

message
The message to write to the log.
exception
An exception, if applicable, whose details will be included with the message.
Example
Write an Error level message to the log and include details of an exception thrown that caused the error
Logger logger = Log.GetLogger();
Exception exc = new NullReferenceException("An error has occurred!");
logger.Error("This is an error log!", exc);
See Also

Reference

Logger Class
Logger Members
Overload List