ImageResizer  3.4.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | List of all members
ImageResizer.Plugins.Logging.LoggingPlugin Class Reference
Inheritance diagram for ImageResizer.Plugins.Logging.LoggingPlugin:
Inheritance graph
[legend]
Collaboration diagram for ImageResizer.Plugins.Logging.LoggingPlugin:
Collaboration graph
[legend]

Public Member Functions

 LoggingPlugin (NameValueCollection args)
 
IPlugin Install (Configuration.Config c)
 
bool Uninstall (Configuration.Config c)
 
ILogger GetLogger (string loggerName)
 Creates the specified logger object and assigns a LoggerName to it. More...
 
void LoadConfigFromFile (string fileName)
 Loads NLog configuration from the specified file. More...
 
- Public Member Functions inherited from ImageResizer.Plugins.IPlugin
IPlugin Install (Config c)
 Installs the plugin in the specified Config instance. The plugin must handle all the work of loading settings, registering the plugin etc. More...
 
bool Uninstall (Config c)
 Uninstalls the plugin. Should reverse all changes made during Install More...
 

Detailed Description

Definition at line 10 of file Logging.cs.

Member Function Documentation

ILogger ImageResizer.Plugins.Logging.LoggingPlugin.GetLogger ( string  loggerName)
inline

Creates the specified logger object and assigns a LoggerName to it.

Parameters
loggerNameThe name of the logger.
Returns
The new logger instance.

Implements ImageResizer.Configuration.Logging.ILogManager.

Definition at line 35 of file Logging.cs.

35  {
36  ILogger logger = new LoggerProxy{
37  LoggerName = loggerName
38  };
39 
40  return logger;
41  }
void ImageResizer.Plugins.Logging.LoggingPlugin.LoadConfigFromFile ( string  fileName)
inline

Loads NLog configuration from the specified file.

Parameters
fileNameThe name of the file to load NLog configuration from.

Implements ImageResizer.Configuration.Logging.ILogManager.

Definition at line 47 of file Logging.cs.

47  {
48  LogManager.Configuration = new XmlLoggingConfiguration(fileName);
49  }

The documentation for this class was generated from the following file: