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