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.

C#
public static Orleans.Runtime.Logger GetLogger(this Orleans.Grain grain);

Parameters

grain
Grain

Returns

A logger for this grain.

Applies to

.NET Orleans 3.4.5
Toode Versioonid
.NET Orleans 3.4.5

GetLogger(Grain, String)

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

C#
public static Orleans.Runtime.Logger GetLogger(this Orleans.Grain grain, string loggerName);

Parameters

grain
Grain
loggerName
String

Returns

Name of the logger to use.

Applies to

.NET Orleans 3.4.5
Toode Versioonid
.NET Orleans 3.4.5

GetLogger(IProviderRuntime, String)

Provides a logger to be used by the provider.

C#
public static Orleans.Runtime.Logger GetLogger(this Orleans.Providers.IProviderRuntime runtime, string loggerName);

Parameters

runtime
IProviderRuntime

Provider runtime

loggerName
String

Name of the logger being requested.

Returns

Object reference to the requested logger.

See also

Applies to

.NET Orleans 3.4.5
Toode Versioonid
.NET Orleans 3.4.5

GetLogger(IGrainRuntime, String)

Extension method GetLogger for IGrainRuntime

C#
public static Orleans.Runtime.Logger GetLogger(this Orleans.Runtime.IGrainRuntime runtime, string loggerName);

Parameters

runtime
IGrainRuntime
loggerName
String

Returns

Applies to

.NET Orleans 3.4.5
Toode Versioonid
.NET Orleans 3.4.5