Class LoggerExtensionMethods
Inheritance
System.Object
LoggerExtensionMethods
Namespace: Orleans.Runtime
Assembly: Orleans.Core.Legacy.dll
Syntax
public static class LoggerExtensionMethods : object
Methods
| Improve this Doc View SourceGetLogger(IProviderRuntime, String)
Provides a logger to be used by the provider.
Declaration
public static Logger GetLogger(this IProviderRuntime runtime, string loggerName)
Parameters
| Type | Name | Description |
|---|---|---|
| IProviderRuntime | runtime | Provider runtime |
| System.String | loggerName | Name of the logger being requested. |
Returns
| Type | Description |
|---|---|
| Logger | Object reference to the requested logger. |
See Also
| Improve this Doc View SourceGetLogger(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.
Declaration
public static Logger GetLogger(this Grain grain)
Parameters
| Type | Name | Description |
|---|---|---|
| Grain | grain |
Returns
| Type | Description |
|---|---|
| Logger | A logger for this grain. |
GetLogger(Grain, String)
Returns a logger object that this grain's code can use for tracing.
Declaration
public static Logger GetLogger(this Grain grain, string loggerName)
Parameters
| Type | Name | Description |
|---|---|---|
| Grain | grain | |
| System.String | loggerName |
Returns
| Type | Description |
|---|---|
| Logger | Name of the logger to use. |
GetLogger(IGrainRuntime, String)
Extension method GetLogger for IGrainRuntime
Declaration
public static Logger GetLogger(this IGrainRuntime runtime, string loggerName)
Parameters
| Type | Name | Description |
|---|---|---|
| IGrainRuntime | runtime | |
| System.String | loggerName |
Returns
| Type | Description |
|---|---|
| Logger |
Logger(IClusterClient)
Provides logging facility for applications.
Declaration
public static Logger Logger(this IClusterClient client)
Parameters
| Type | Name | Description |
|---|---|---|
| IClusterClient | client |
Returns
| Type | Description |
|---|---|
| Logger |