Class ImageProcessorLogger
A logger for explicitly logging ImageProcessor exceptions.
Inheritance
System.Object
Namespace: Umbraco.Web
Assembly: Umbraco.Web.dll
Syntax
public sealed class ImageProcessorLogger : ImageProcessor.Common.Exceptions.ILogger
Methods
View SourceLog(Type, String, String, Int32)
Logs the specified message as an error.
Declaration
public void Log(Type type, string text, string callerName = null, int lineNumber = 0)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type calling the logger. |
System.String | text | The message to log. |
System.String | callerName | The property or method name calling the log. |
System.Int32 | lineNumber | The line number where the method is called. |
Log<T>(String, String, Int32)
Logs the specified message as an error.
Declaration
public void Log<T>(string text, string callerName = null, int lineNumber = 0)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The message to log. |
System.String | callerName | The property or method name calling the log. |
System.Int32 | lineNumber | The line number where the method is called. |
Type Parameters
Name | Description |
---|---|
T | The type calling the logger. |