Show / Hide Table of Contents

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 Source

Error(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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

  • View Source
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX