Interface ILogger
Provides logging services
Namespace: Snowflake.Extensibility
Assembly: Snowflake.Framework.Primitives.dll
Syntax
public interface ILogger
Properties
Name
Gets the name of the logger
Declaration
string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
Debug(String)
Log a message at the Debug log level
Declaration
void Debug(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | The message to log |
Error(Exception, String)
Logs an exception.
Declaration
void Error(Exception ex, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Exception | ex | The exception to log. |
| System.String | message | The error message. |
Error(String)
Log a message at the Error log level
Declaration
void Error(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | The message to log |
Fatal(String)
Log a message at the Fatal log level
Declaration
void Fatal(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | The message to log |
Info(String)
Log a message at the Info log level
Declaration
void Info(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | The message to log |
Log(String, LogLevel)
Log a messsage with the specified LogLevel
Declaration
void Log(string messsage, LogLevel logLevel)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | messsage | The message to log |
| LogLevel | logLevel | The log level |
Trace(String)
Log a message at the Trace log level
Declaration
void Trace(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | The message to log |
Warn(String)
Log a message at the Warn log level
Declaration
void Warn(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | The message to log |