Class Log
The static logging class used to point to a proper logger.
Inheritance
System.Object
Log
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Microsoft.Bot.Builder.Enterprise.Logging
Assembly: Microsoft.Bot.Builder.Enterprise.dll
Syntax
public static class Log
Methods
View SourceError(Exception, String, Int32, String, String)
Error logging
Declaration
public static void Error(Exception exception, string message, int lineNumber = 0, string caller = null, string callerFilePath = null)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | exception | The exception. |
System.String | message | The message. |
System.Int32 | lineNumber | The line Number. |
System.String | caller | The caller. |
System.String | callerFilePath | The caller File Path. |
Error(String, Int32, String, String)
Error logging
Declaration
public static void Error(string message, int lineNumber = 0, string caller = null, string callerFilePath = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message. |
System.Int32 | lineNumber | The line Number. |
System.String | caller | The caller. |
System.String | callerFilePath | The caller File Path. |
Information(Exception, String, Int32, String, String)
Information logging
Declaration
public static void Information(Exception exception, string message, int lineNumber = 0, string caller = null, string callerFilePath = null)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | exception | The exception. |
System.String | message | The message. |
System.Int32 | lineNumber | The line Number. |
System.String | caller | The caller. |
System.String | callerFilePath | The caller File Path. |
Information(String, Int32, String, String)
Information logging
Declaration
public static void Information(string message, int lineNumber = 0, string caller = null, string callerFilePath = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message. |
System.Int32 | lineNumber | The line Number. |
System.String | caller | The caller. |
System.String | callerFilePath | The caller File Path. |
Verbose(Exception, String, Int32, String, String)
Verbose logging
Declaration
public static void Verbose(Exception exception, string message, int lineNumber = 0, string caller = null, string callerFilePath = null)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | exception | The exception. |
System.String | message | The message. |
System.Int32 | lineNumber | The line Number. |
System.String | caller | The caller. |
System.String | callerFilePath | The caller File Path. |
Verbose(String, Int32, String, String)
Verbose logging
Declaration
public static void Verbose(string message, int lineNumber = 0, string caller = null, string callerFilePath = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message. |
System.Int32 | lineNumber | The line Number. |
System.String | caller | The caller. |
System.String | callerFilePath | The caller File Path. |
Warning(Exception, String, Int32, String, String)
Warning logging
Declaration
public static void Warning(Exception exception, string message, int lineNumber = 0, string caller = null, string callerFilePath = null)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | exception | The exception. |
System.String | message | The message. |
System.Int32 | lineNumber | The line Number. |
System.String | caller | The caller. |
System.String | callerFilePath | The caller File Path. |
Warning(String, Int32, String, String)
Warning logging
Declaration
public static void Warning(string message, int lineNumber = 0, string caller = null, string callerFilePath = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message. |
System.Int32 | lineNumber | The line Number. |
System.String | caller | The caller. |
System.String | callerFilePath | The caller File Path. |