Class LogInfoExtensions
The extensions for making logging easy and flexible
Inheritance
System.Object
                  LogInfoExtensions
              Inherited Members
                  System.Object.Equals(System.Object)
                
                
                  System.Object.Equals(System.Object, System.Object)
                
                
                  System.Object.GetHashCode()
                
                
                  System.Object.GetType()
                
                
                  System.Object.MemberwiseClone()
                
                
                  System.Object.ReferenceEquals(System.Object, System.Object)
                
                
                  System.Object.ToString()
                
              Namespace:Dapplo.Log
Assembly:Dapplo.Log.dll
Syntax
public static class LogInfoExtensionsMethods
| Improve this Doc View SourceWrite(LogInfo, String, Object[])
This extension method passes the messageTemplate and parameters to the loggers Write method.
Declaration
public static void Write(this LogInfo logInfo, string messageTemplate, params object[] logParameters)Parameters
| Type | Name | Description | 
|---|---|---|
| LogInfo | logInfo | LogInfo | 
| System.String | messageTemplate | string with formatting | 
| System.Object[] | logParameters | parameters for the formatting | 
WriteLine(LogInfo, Exception, String, Object[])
This extension method passes the Exception, messageTemplate and parameters to the loggers WriteLine method.
Declaration
public static void WriteLine(this LogInfo logInfo, Exception exception, string messageTemplate = null, params object[] logParameters)Parameters
| Type | Name | Description | 
|---|---|---|
| LogInfo | logInfo | LogInfo | 
| System.Exception | exception | Exception to log | 
| System.String | messageTemplate | string with formatting | 
| System.Object[] | logParameters | parameters for the formatting | 
WriteLine(LogInfo, String, Object[])
This extension method passes the messageTemplate and parameters to the loggers WriteLine method.
Declaration
public static void WriteLine(this LogInfo logInfo, string messageTemplate, params object[] logParameters)Parameters
| Type | Name | Description | 
|---|---|---|
| LogInfo | logInfo | LogInfo | 
| System.String | messageTemplate | string with formatting | 
| System.Object[] | logParameters | parameters for the formatting |