Show / Hide Table of Contents

Class LoggerExtensions

Inheritance
System.Object
LoggerExtensions
Namespace: Orleans.Runtime
Assembly: Orleans.Core.Legacy.dll
Syntax
public static class LoggerExtensions : object

Methods

| Improve this Doc View Source

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.

Declaration
public static void Error(this Logger logger, int logCode, string message, Exception exception = null)
Parameters
Type Name Description
Logger logger

The logger

System.Int32 logCode

The log code associated with this message.

System.String message

The error message to log.

Exception exception

An exception related to the error, if any.

| Improve this Doc View Source

GetSubLogger(Logger, String, String)

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

Declaration
public static Logger GetSubLogger(this Logger logger, string appendedName, string seperator = ".")
Parameters
Type Name Description
Logger logger
System.String appendedName
System.String seperator
Returns
Type Description
Logger
| Improve this Doc View Source

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.

Declaration
public static void Info(this Logger logger, int logCode, string message)
Parameters
Type Name Description
Logger logger

The logger

System.Int32 logCode

The log code associated with this message.

System.String message

The log message.

| Improve this Doc View Source

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.

Declaration
public static void Info(this Logger logger, int logCode, string format, params object[] args)
Parameters
Type Name Description
Logger logger

The logger

System.Int32 logCode

The log code associated with this message.

System.String format

A standard format string, suitable for String.Format.

System.Object[] args

Any arguments to the format string.

| Improve this Doc View Source

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.

Declaration
public static void Info(this Logger logger, string message)
Parameters
Type Name Description
Logger logger

Target logger.

System.String message

The log message.

| Improve this Doc View Source

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.

Declaration
public static void Info(this Logger logger, string format, params object[] args)
Parameters
Type Name Description
Logger logger

Target logger.

System.String format

A standard format string, suitable for String.Format.

System.Object[] args

Any arguments to the format string.

| Improve this Doc View Source

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.

Declaration
public static void Verbose(this Logger logger, int logCode, string message)
Parameters
Type Name Description
Logger logger

The logger

System.Int32 logCode

The log code associated with this message.

System.String message

The log message.

| Improve this Doc View Source

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.

Declaration
public static void Verbose(this Logger logger, int logCode, string format, params object[] args)
Parameters
Type Name Description
Logger logger

The logger

System.Int32 logCode

The log code associated with this message.

System.String format

A standard format string, suitable for String.Format.

System.Object[] args

Any arguments to the format string.

| Improve this Doc View Source

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.

Declaration
public static void Verbose(this Logger logger, string message)
Parameters
Type Name Description
Logger logger

The logger

System.String message

The log message.

| Improve this Doc View Source

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.

Declaration
public static void Verbose(this Logger logger, string format, params object[] args)
Parameters
Type Name Description
Logger logger

The logger

System.String format

A standard format string, suitable for String.Format.

System.Object[] args

Any arguments to the format string.

| Improve this Doc View Source

Verbose2(Logger, Int32, String)

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

Declaration
public static void Verbose2(this Logger logger, int logCode, string message)
Parameters
Type Name Description
Logger logger

The logger

System.Int32 logCode

The log code associated with this message.

System.String message

The log message.

| Improve this Doc View Source

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.

Declaration
public static void Verbose2(this Logger logger, int logCode, string format, params object[] args)
Parameters
Type Name Description
Logger logger

The logger

System.Int32 logCode

The log code associated with this message.

System.String format

A standard format string, suitable for String.Format.

System.Object[] args

Any arguments to the format string.

| Improve this Doc View Source

Verbose2(Logger, String)

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

Declaration
public static void Verbose2(this Logger logger, string message)
Parameters
Type Name Description
Logger logger

The logger

System.String message

The log message.

| Improve this Doc View Source

Verbose2(Logger, String, Object[])

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

Declaration
public static void Verbose2(this Logger logger, string format, params object[] args)
Parameters
Type Name Description
Logger logger

The logger

System.String format

A standard format string, suitable for String.Format.

System.Object[] args

Any arguments to the format string.

| Improve this Doc View Source

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.

Declaration
public static void Verbose3(this Logger logger, int logCode, string message)
Parameters
Type Name Description
Logger logger

The logger

System.Int32 logCode

The log code associated with this message.

System.String message

The log message.

| Improve this Doc View Source

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.

Declaration
public static void Verbose3(this Logger logger, int logCode, string format, params object[] args)
Parameters
Type Name Description
Logger logger

The logger

System.Int32 logCode

The log code associated with this message.

System.String format

A standard format string, suitable for String.Format.

System.Object[] args

Any arguments to the format string.

| Improve this Doc View Source

Verbose3(Logger, String)

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

Declaration
public static void Verbose3(this Logger logger, string message)
Parameters
Type Name Description
Logger logger

The logger

System.String message

The log message.

| Improve this Doc View Source

Verbose3(Logger, String, Object[])

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

Declaration
public static void Verbose3(this Logger logger, string format, params object[] args)
Parameters
Type Name Description
Logger logger

The logger

System.String format

A standard format string, suitable for String.Format.

System.Object[] args

Any arguments to the format string.

| Improve this Doc View Source

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.

Declaration
public static void Warn(this Logger logger, int logCode, string message, Exception exception = null)
Parameters
Type Name Description
Logger logger

The logger

System.Int32 logCode

The log code associated with this message.

System.String message

The warning message to log.

Exception exception

An exception related to the warning, if any.

| Improve this Doc View Source

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.

Declaration
public static void Warn(this Logger logger, int logCode, string format, params object[] args)
Parameters
Type Name Description
Logger logger

The logger

System.Int32 logCode

The log code associated with this message.

System.String format

A standard format string, suitable for String.Format.

System.Object[] args

Any arguments to the format string.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX