Redigera

Dela via


LoggerExtensionMethods.GetLogger Method

Definition

Overloads

GetLogger(Grain)

Returns a logger object that this grain's code can use for tracing. The name of the logger will be derived from the grain class name.

GetLogger(Grain, String)

Returns a logger object that this grain's code can use for tracing.

GetLogger(IProviderRuntime, String)

Provides a logger to be used by the provider.

GetLogger(IGrainRuntime, String)

Extension method GetLogger for IGrainRuntime

GetLogger(Grain)

Returns a logger object that this grain's code can use for tracing. The name of the logger will be derived from the grain class name.

public static Orleans.Runtime.Logger GetLogger (this Orleans.Grain grain);
static member GetLogger : Orleans.Grain -> Orleans.Runtime.Logger
<Extension()>
Public Function GetLogger (grain As Grain) As Logger

Parameters

grain
Grain

Returns

A logger for this grain.

Applies to

GetLogger(Grain, String)

Returns a logger object that this grain's code can use for tracing.

public static Orleans.Runtime.Logger GetLogger (this Orleans.Grain grain, string loggerName);
static member GetLogger : Orleans.Grain * string -> Orleans.Runtime.Logger
<Extension()>
Public Function GetLogger (grain As Grain, loggerName As String) As Logger

Parameters

grain
Grain
loggerName
String

Returns

Name of the logger to use.

Applies to

GetLogger(IProviderRuntime, String)

Provides a logger to be used by the provider.

public static Orleans.Runtime.Logger GetLogger (this Orleans.Providers.IProviderRuntime runtime, string loggerName);
static member GetLogger : Orleans.Providers.IProviderRuntime * string -> Orleans.Runtime.Logger
<Extension()>
Public Function GetLogger (runtime As IProviderRuntime, loggerName As String) As Logger

Parameters

runtime
IProviderRuntime

Provider runtime

loggerName
String

Name of the logger being requested.

Returns

Object reference to the requested logger.

See also

Applies to

GetLogger(IGrainRuntime, String)

Extension method GetLogger for IGrainRuntime

public static Orleans.Runtime.Logger GetLogger (this Orleans.Runtime.IGrainRuntime runtime, string loggerName);
static member GetLogger : Orleans.Runtime.IGrainRuntime * string -> Orleans.Runtime.Logger
<Extension()>
Public Function GetLogger (runtime As IGrainRuntime, loggerName As String) As Logger

Parameters

runtime
IGrainRuntime
loggerName
String

Returns

Applies to