Interface ILogger
Provides abstraction for arbitrary logger implementation.
Namespace: TcOpen.Inxton.Logging
Assembly: TcOpen.Inxton.Abstractions.dll
Syntax
public interface ILogger
Methods
| Improve this Doc View SourceDebug<T>(String, T)
Logs debug message. This should ne used only for debugging purpose and should not be active in production environment.
Declaration
void Debug<T>(string stringTemplate, T payload = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | stringTemplate | Message template |
T | payload | Object for structured logging |
Type Parameters
Name | Description |
---|---|
T |
Error<T>(String, T)
Logs error message level. Use to preserve information an error (e.g. exception)
Declaration
void Error<T>(string stringTemplate, T payload = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | stringTemplate | Message template |
T | payload | Object for structured logging |
Type Parameters
Name | Description |
---|---|
T |
Fatal<T>(String, T)
Logs fatal message level. Use to preserve information a fatal error (hardware problem, storage space, essential network connectivity, etc.)
Declaration
void Fatal<T>(string stringTemplate, T payload = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | stringTemplate | Message template |
T | payload | Object for structured logging |
Type Parameters
Name | Description |
---|---|
T |
Information<T>(String, T)
Logs information message level. User for logging information that is of interest, such as user actions (log-in / log-out, value change, manual command execution, etc.)
Declaration
void Information<T>(string stringTemplate, T payload = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | stringTemplate | Message template |
T | payload | Object for structured logging |
Type Parameters
Name | Description |
---|---|
T |
Verbose<T>(String, T)
Logs verbose message level. Use for detailed information collection. This level should be activated in particular situations and should not be active as a rule in production environment.
Declaration
void Verbose<T>(string stringTemplate, T payload = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | stringTemplate | Message template |
T | payload | Object for structured logging |
Type Parameters
Name | Description |
---|---|
T |
Warning<T>(String, T)
Logs warning message level. Use to preserve information about possible problem or to emphasize an information that the user should be aware of.
Declaration
void Warning<T>(string stringTemplate, T payload = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | stringTemplate | Message template |
T | payload | Object for structured logging |
Type Parameters
Name | Description |
---|---|
T |