Grain.GetLogger Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
GetLogger() |
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(String) |
Returns a logger object that this grain's code can use for tracing. |
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.
protected Orleans.Runtime.Logger GetLogger ();
member this.GetLogger : unit -> Orleans.Runtime.Logger
Protected Function GetLogger () As Logger
Returns
A logger for this grain.
Applies to
Returns a logger object that this grain's code can use for tracing.
protected virtual Orleans.Runtime.Logger GetLogger (string loggerName);
abstract member GetLogger : string -> Orleans.Runtime.Logger
override this.GetLogger : string -> Orleans.Runtime.Logger
Protected Overridable Function GetLogger (loggerName As String) As Logger
Parameters
- loggerName
- String
Returns
Name of the logger to use.