次の方法で共有


Logging.Info Method

Definition

Overloads

Info(String, String)

Displays messages that are useful, but do not represent a problem.

Info(String, String, Object[])

Displays messages that are useful, but do not represent a problem.

Info(String, String)

Displays messages that are useful, but do not represent a problem.

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

Parameters

appName
String

Specifies the name of the application

message
String

Specifies the message to place in the log

Exceptions

Configuration-related exceptions are wrapped in this common exception type.

Logging listeners are not permitted to call methods of the Logging class.

Remarks

It only displays when the TraceSwitch is assigned TraceInfo. It takes the string passed in and sends it to any trace listener. It also will display it in a list control if one has been made available or in the various logs.

Applies to

Info(String, String, Object[])

Displays messages that are useful, but do not represent a problem.

public:
 static void Info(System::String ^ appName, System::String ^ format, ... cli::array <System::Object ^> ^ parameters);
public static void Info (string appName, string format, params object[] parameters);
static member Info : string * string * obj[] -> unit
Public Shared Sub Info (appName As String, format As String, ParamArray parameters As Object())

Parameters

appName
String

Specifies the name to give for the application.

format
String

Specifies the format of the message.

parameters
Object[]

Specifies the parameters to be substituted into the string format.

Exceptions

Configuration-related exceptions are wrapped in this common exception type.

Logging listeners are not permitted to call methods of the Logging class.

Remarks

It only displays when the TraceSwitch is assigned TraceInfo. It takes the string passed in and sends it to any trace listener. It also will display it in a list control if one has been made available or in the various logs.

Applies to