共用方式為


Logger.Info Method

Definition

Overloads

Info(String, String)

Logs an informational event with the specified parameters.

Info(String, String, Boolean)

Logs an informational event with the specified parameters.

Info(String, String)

Logs an informational event with the specified parameters.

public static void Info (string caller, string message);
static member Info : string * string -> unit
Public Shared Sub Info (caller As String, message As String)

Parameters

caller
String

The source of the information

message
String

An informational message

Applies to

Info(String, String, Boolean)

Logs an informational event with the specified parameters.

public static void Info (string caller, string message, bool eventLog);
static member Info : string * string * bool -> unit
Public Shared Sub Info (caller As String, message As String, eventLog As Boolean)

Parameters

caller
String

The source of the information

message
String

An informational message

eventLog
Boolean

TRUE to write to the Windows event log; otherwise, FALSE

Applies to