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

Public Member Functions

void Log (string level, string message)
 Writes the diagnostic message at the specified level. More...
 
void Trace (string message)
 Writes the diagnostic message at the Trace level. More...
 
void Trace (string message, params object[] args)
 
void Debug (string message)
 Writes the diagnostic message at the Debug level. More...
 
void Debug (string message, params object[] args)
 
void Info (string message)
 Writes the diagnostic message at the Info level. More...
 
void Info (string message, params object[] args)
 
void Warn (string message)
 Writes the diagnostic message at the Warn level. More...
 
void Warn (string message, params object[] args)
 
void Error (string message)
 Writes the diagnostic message at the Error level. More...
 
void Error (string message, params object[] args)
 
void Fatal (string message)
 Writes the diagnostic message at the Fatal level. More...
 
void Fatal (string message, params object[] args)
 
bool IsEnabled (string level)
 Checks if the specified log level is enabled. More...
 

Properties

bool IsTraceEnabled [get]
 Gets a value indicating whether the Trace level is enabled. More...
 
bool IsDebugEnabled [get]
 Gets a value indicating whether the Debug level is enabled. More...
 
bool IsInfoEnabled [get]
 Gets a value indicating whether the Info level is enabled. More...
 
bool IsWarnEnabled [get]
 Gets a value indicating whether the Warn level is enabled. More...
 
bool IsErrorEnabled [get]
 Gets a value indicating whether the Error level is enabled. More...
 
bool IsFatalEnabled [get]
 Gets a value indicating whether the Fatal level is enabled. More...
 
string LoggerName [get, set]
 Gets or sets the logger name. More...
 
- Properties inherited from ImageResizer.Configuration.Logging.ILogger
bool IsTraceEnabled [get]
 Gets a value indicating whether the Trace level is enabled. More...
 
bool IsDebugEnabled [get]
 Gets a value indicating whether the Debug level is enabled. More...
 
bool IsInfoEnabled [get]
 Gets a value indicating whether the Info level is enabled. More...
 
bool IsWarnEnabled [get]
 Gets a value indicating whether the Warn level is enabled. More...
 
bool IsErrorEnabled [get]
 Gets a value indicating whether the Error level is enabled. More...
 
bool IsFatalEnabled [get]
 Gets a value indicating whether the Fatal level is enabled. More...
 
string LoggerName [get, set]
 Gets or sets the logger name. More...
 

Detailed Description

Definition at line 8 of file LoggerProxy.cs.

Member Function Documentation

void ImageResizer.Plugins.Logging.LoggerProxy.Debug ( string  message)
inline

Writes the diagnostic message at the Debug level.

Parameters
messageA to be written.

Implements ImageResizer.Configuration.Logging.ILogger.

Definition at line 102 of file LoggerProxy.cs.

102  {
103  this.logger.Debug(message);
104  }
void ImageResizer.Plugins.Logging.LoggerProxy.Error ( string  message)
inline

Writes the diagnostic message at the Error level.

Parameters
messageA to be written.

Implements ImageResizer.Configuration.Logging.ILogger.

Definition at line 138 of file LoggerProxy.cs.

138  {
139  this.logger.Error(message);
140  }
void ImageResizer.Plugins.Logging.LoggerProxy.Fatal ( string  message)
inline

Writes the diagnostic message at the Fatal level.

Parameters
messageA to be written.

Implements ImageResizer.Configuration.Logging.ILogger.

Definition at line 150 of file LoggerProxy.cs.

150  {
151  this.logger.Fatal(message);
152  }
void ImageResizer.Plugins.Logging.LoggerProxy.Info ( string  message)
inline

Writes the diagnostic message at the Info level.

Parameters
messageA to be written.

Implements ImageResizer.Configuration.Logging.ILogger.

Definition at line 114 of file LoggerProxy.cs.

114  {
115  this.logger.Info(message);
116  }
bool ImageResizer.Plugins.Logging.LoggerProxy.IsEnabled ( string  level)
inline

Checks if the specified log level is enabled.

Parameters
levelThe log level.
Returns
A value indicating whether the specified log level is enabled.

Implements ImageResizer.Configuration.Logging.ILogger.

Definition at line 165 of file LoggerProxy.cs.

165  {
166  return this.logger.IsEnabled(LogLevel.FromString(level));
167  }
void ImageResizer.Plugins.Logging.LoggerProxy.Log ( string  level,
string  message 
)
inline

Writes the diagnostic message at the specified level.

Parameters
levelThe log level.
messageA to be written.

Implements ImageResizer.Configuration.Logging.ILogger.

Definition at line 82 of file LoggerProxy.cs.

82  {
83  this.logger.Log(LogLevel.FromString(level), message);
84  }
void ImageResizer.Plugins.Logging.LoggerProxy.Trace ( string  message)
inline

Writes the diagnostic message at the Trace level.

Parameters
messageA to be written.

Implements ImageResizer.Configuration.Logging.ILogger.

Definition at line 90 of file LoggerProxy.cs.

90  {
91  this.logger.Trace(message);
92  }
void ImageResizer.Plugins.Logging.LoggerProxy.Warn ( string  message)
inline

Writes the diagnostic message at the Warn level.

Parameters
messageA to be written.

Implements ImageResizer.Configuration.Logging.ILogger.

Definition at line 126 of file LoggerProxy.cs.

126  {
127  this.logger.Warn(message);
128  }

Property Documentation

bool ImageResizer.Plugins.Logging.LoggerProxy.IsDebugEnabled
get

Gets a value indicating whether the Debug level is enabled.

Definition at line 26 of file LoggerProxy.cs.

bool ImageResizer.Plugins.Logging.LoggerProxy.IsErrorEnabled
get

Gets a value indicating whether the Error level is enabled.

Definition at line 50 of file LoggerProxy.cs.

bool ImageResizer.Plugins.Logging.LoggerProxy.IsFatalEnabled
get

Gets a value indicating whether the Fatal level is enabled.

Definition at line 58 of file LoggerProxy.cs.

bool ImageResizer.Plugins.Logging.LoggerProxy.IsInfoEnabled
get

Gets a value indicating whether the Info level is enabled.

Definition at line 34 of file LoggerProxy.cs.

bool ImageResizer.Plugins.Logging.LoggerProxy.IsTraceEnabled
get

Gets a value indicating whether the Trace level is enabled.

Definition at line 18 of file LoggerProxy.cs.

bool ImageResizer.Plugins.Logging.LoggerProxy.IsWarnEnabled
get

Gets a value indicating whether the Warn level is enabled.

Definition at line 42 of file LoggerProxy.cs.

string ImageResizer.Plugins.Logging.LoggerProxy.LoggerName
getset

Gets or sets the logger name.

Definition at line 66 of file LoggerProxy.cs.


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