Exago .NET API Documentation
GetLogger Method
Example 
WebReports.Api.Common Namespace > Log Class : GetLogger Method
The name of one of the loggers from the log4net configuration file. If no logName is provided, this value defaults to "Exago Logger" which represents the Web Application's (or API's) log file.
Retrieve a Logger object that can be used to write to the Exago log file.
Syntax
public static Logger GetLogger( 
   System.string logName
)

Parameters

logName
The name of one of the loggers from the log4net configuration file. If no logName is provided, this value defaults to "Exago Logger" which represents the Web Application's (or API's) log file.

Return Value

A Logger object
Example
Write a simple Info level message to the log file.
WebReports.Api.Common.Logger log = WebReports.Api.Common.Log.GetLogger();
log.Info("Hello, world!");
See Also

Reference

Log Class
Log Members