Edit

Share via


Logger Class

Definition

Interface of Orleans runtime for logging services.

[System.Serializable]
public abstract class Logger
[<System.Serializable>]
type Logger = class
Public MustInherit Class Logger
Inheritance
Logger
Derived
Attributes

Constructors

Logger()

Properties

IsInfo

Whether the current SeverityLevel would output Info messages for this logger.

IsVerbose

Whether the current SeverityLevel would output Verbose messages for this logger.

IsVerbose2

Whether the current SeverityLevel would output Verbose2 messages for this logger.

IsVerbose3

Whether the current SeverityLevel would output Verbose3 messages for this logger.

IsWarning

Whether the current SeverityLevel would output Warning messages for this logger.

Name

Name of logger instance

SeverityLevel

Current SeverityLevel set for this logger.

Methods

DecrementMetric(String, Double)
DecrementMetric(String)
GetLogger(String)

Find existing or create new Logger with the specified name

IncrementMetric(String, Double)
IncrementMetric(String)
Log(Int32, Severity, String, Object[], Exception)

Log message

TrackDependency(String, String, DateTimeOffset, TimeSpan, Boolean)
TrackEvent(String, IDictionary<String,String>, IDictionary<String,Double>)
TrackException(Exception, IDictionary<String,String>, IDictionary<String,Double>)
TrackMetric(String, Double, IDictionary<String,String>)
TrackMetric(String, TimeSpan, IDictionary<String,String>)
TrackRequest(String, DateTimeOffset, TimeSpan, String, Boolean)
TrackTrace(String, IDictionary<String,String>)
TrackTrace(String, Severity, IDictionary<String,String>)
TrackTrace(String, Severity)
TrackTrace(String)

Extension Methods

Error(Logger, Int32, String, Exception)

Writes a log entry at the Error severity level, with the specified log id code. Error is suitable for problem conditions that require immediate administrative response.

GetSubLogger(Logger, String, String)

Finds or creates a logger named after the existing logger with the appended name added.

Info(Logger, Int32, String, Object[])

Writes a log entry at the Info severity level, with the specified log id code. Info is suitable for information that does not indicate an error but that should usually be logged in production. Info is lower than Warning.

Info(Logger, Int32, String)

Writes a log entry at the Info severity level, with the specified log id code. Info is suitable for information that does not indicate an error but that should usually be logged in production. Info is lower than Warning.

Info(Logger, String, Object[])

Writes a log entry at the Info severity level. Info is suitable for information that does not indicate an error but that should usually be logged in production. Info is lower than Warning.

Info(Logger, String)

Writes a log entry at the Info severity level. Info is suitable for information that does not indicate an error but that should usually be logged in production. Info is lower than Warning.

Verbose(Logger, Int32, String, Object[])

Writes a log entry at the Verbose severity level, with the specified log id code. Verbose is suitable for debugging information that should usually not be logged in production. Verbose is lower than Info.

Verbose(Logger, Int32, String)

Writes a log entry at the Verbose severity level, with the specified log id code. Verbose is suitable for debugging information that should usually not be logged in production. Verbose is lower than Info.

Verbose(Logger, String, Object[])

Writes a log entry at the Verbose severity level. Verbose is suitable for debugging information that should usually not be logged in production. Verbose is lower than Info.

Verbose(Logger, String)

Writes a log entry at the Verbose severity level. Verbose is suitable for debugging information that should usually not be logged in production. Verbose is lower than Info.

Verbose2(Logger, Int32, String, Object[])

Writes a log entry at the Verbose2 severity level, with the specified log id code. Verbose2 is lower than Verbose.

Verbose2(Logger, Int32, String)

Writes a log entry at the Verbose2 severity level, with the specified log id code. Verbose2 is lower than Verbose.

Verbose2(Logger, String, Object[])

Writes a log entry at the Verbose2 severity level. Verbose2 is lower than Verbose.

Verbose2(Logger, String)

Writes a log entry at the Verbose2 severity level. Verbose2 is lower than Verbose.

Verbose3(Logger, Int32, String, Object[])

Writes a log entry at the Verbose3 severity level, with the specified log id code. Verbose3 is the lowest severity level.

Verbose3(Logger, Int32, String)

Writes a log entry at the Verbose3 severity level, with the specified log id code. Verbose3 is the lowest severity level.

Verbose3(Logger, String, Object[])

Writes a log entry at the Verbose3 severity level. Verbose3 is the lowest severity level.

Verbose3(Logger, String)

Writes a log entry at the Verbose3 severity level. Verbose3 is the lowest severity level.

Warn(Logger, Int32, String, Exception)

Writes a log entry at the Warning severity level, with the specified log id code. Warning is suitable for problem conditions that the system or application can handle by itself, but that the administrator should be aware of. Typically these are situations that are expected but that may eventually require an administrative response if they recur. Warning is lower than Error.

Warn(Logger, Int32, String, Object[])

Writes a log entry at the Warning severity level, with the specified log id code. Warning is suitable for problem conditions that the system or application can handle by itself, but that the administrator should be aware of. Typically these are situations that are expected but that may eventually require an administrative response if they recur. Warning is lower than Error.

Applies to