Class Logger
Abstract base class for loggers.
Inherited Members
Namespace: Dicom.Log
Assembly: cs.temp.dll.dll
Syntax
public abstract class Logger
Methods
Debug(String, Object[])
Log a debug message to the logger.
Declaration
public void Debug(string msg, params object[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| String | msg | Log message (format string). |
| Object[] | args | Log message arguments. |
Error(String, Object[])
Log an error message to the logger.
Declaration
public void Error(string msg, params object[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| String | msg | Log message (format string). |
| Object[] | args | Log message arguments. |
Fatal(String, Object[])
Log a fatal error message to the logger.
Declaration
public void Fatal(string msg, params object[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| String | msg | Log message (format string). |
| Object[] | args | Log message arguments. |
Info(String, Object[])
Log an informational message to the logger.
Declaration
public void Info(string msg, params object[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| String | msg | Log message (format string). |
| Object[] | args | Log message arguments. |
Log(LogLevel, String, Object[])
Log a message to the logger.
Declaration
public abstract void Log(LogLevel level, string msg, params object[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| LogLevel | level | Log level. |
| String | msg | Log message (format string). |
| Object[] | args | Log message arguments. |
NameFormatToPositionalFormat(String)
Called to adapt the string message before passing through Adapts messages of the form Beginning parsing for {@file} using widget {widgetName} To Beginning parsing for {0} using widget {1} Required by loggers that expect positional format rather than named format such as NLog
Declaration
protected static string NameFormatToPositionalFormat(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| String | message |
Returns
| Type | Description |
|---|---|
| String |
Warn(String, Object[])
Log a warning message to the logger.
Declaration
public void Warn(string msg, params object[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| String | msg | Log message (format string). |
| Object[] | args | Log message arguments. |