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. |
Methods
Debug(String)
Log a message at the Debug log level
Declaration
void Debug(string message)
Parameters
Type | Name | Description |
---|---|---|
System. |
message | The message to log |
Error(Exception, String)
Logs an exception.
Declaration
void Error(Exception ex, string message)
Parameters
Type | Name | Description |
---|---|---|
System. |
ex | The exception to log. |
System. |
message | The error message. |
Error(String)
Log a message at the Error log level
Declaration
void Error(string message)
Parameters
Type | Name | Description |
---|---|---|
System. |
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. |
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. |
message | The message to log |
Log(String, LogLevel)
Log a messsage with the specified Log
Declaration
void Log(string messsage, LogLevel logLevel)
Parameters
Type | Name | Description |
---|---|---|
System. |
messsage | The message to log |
Log |
logLevel | The log level |
Trace(String)
Log a message at the Trace log level
Declaration
void Trace(string message)
Parameters
Type | Name | Description |
---|---|---|
System. |
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. |
message | The message to log |