Class Logger
Interface of Orleans runtime for logging services.
Inheritance
System.Object
Logger
Namespace: Orleans.Runtime
Assembly: Orleans.Core.Legacy.dll
Syntax
public abstract class Logger : object
Properties
| Improve this Doc View SourceIsInfo
Whether the current SeverityLevel would output Info messages for this logger.
Declaration
public bool IsInfo { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsVerbose
Whether the current SeverityLevel would output Verbose messages for this logger.
Declaration
public bool IsVerbose { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsVerbose2
Whether the current SeverityLevel would output Verbose2 messages for this logger.
Declaration
public bool IsVerbose2 { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsVerbose3
Whether the current SeverityLevel would output Verbose3 messages for this logger.
Declaration
public bool IsVerbose3 { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsWarning
Whether the current SeverityLevel would output Warning messages for this logger.
Declaration
public bool IsWarning { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Name
Name of logger instance
Declaration
public abstract string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
SeverityLevel
Current SeverityLevel set for this logger.
Declaration
public abstract Severity SeverityLevel { get; }
Property Value
| Type | Description |
|---|---|
| Severity |
Methods
| Improve this Doc View SourceGetLogger(String)
Find existing or create new Logger with the specified name
Declaration
public abstract Logger GetLogger(string loggerName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | loggerName | Name of the Logger to find or create |
Returns
| Type | Description |
|---|---|
| Logger | Logger associated with the specified name |
Log(Int32, Severity, String, Object[], Exception)
Log message
Declaration
public abstract void Log(int errorCode, Severity sev, string format, object[] args, Exception exception)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | errorCode | |
| Severity | sev | |
| System.String | format | |
| System.Object[] | args | |
| Exception | exception |