Interface ILogger
- Namespace
- WhalesSecret.TradeScriptLib.API.LoggingV1
- Assembly
- WhalesSecret.TradeScriptLib.dll
Trade script logger interface version 1.0.0.
public interface ILogger : IVersionedApiV1, IDisposable
- Inherited Members
- Extension Methods
Fields
- MaxLogLineLength
Maximum length of the line to write into the log file.
Properties
- IsDebugEnabled
Gets a value indicating whether logging is enabled for the Debug level.
- IsErrorEnabled
Gets a value indicating whether logging is enabled for the Error level.
- IsFatalEnabled
Gets a value indicating whether logging is enabled for the Fatal level.
- IsInfoEnabled
Gets a value indicating whether logging is enabled for the Info level.
- IsLoggingEnabled
Gets a value indicating whether logging is enabled for any of the logging levels.
- IsTraceEnabled
Gets a value indicating whether logging is enabled for the Trace level.
- IsWarnEnabled
Gets a value indicating whether logging is enabled for the Warn level.
- LogLevel
Gets a logging level of the logger.
Methods
- Debug(string, params object?[])
Writes the diagnostic message at the Debug level using the specified parameters.
- Error(string, params object?[])
Writes the diagnostic message at the Error level using the specified parameters.
- Fatal(string, params object?[])
Writes the diagnostic message at the Fatal level using the specified parameters.
- Info(string, params object?[])
Writes the diagnostic message at the Info level using the specified parameters.
- SetMdlc()
Sets a unique Mapped Diagnostics Logical Context (MDLC) to the current execution context. This method is to be called at the start of each async context that is supposed to be tracked separately.
A MDLC consists of two parts separated by a delimiter. The first part is an identifier of the parent context, i.e. the context from which the new MDLC was created. The second part is an identifier of the current context.
- Trace(string, params object?[])
Writes the diagnostic message at the Trace level using the specified parameters.
- Warn(string, params object?[])
Writes the diagnostic message at the Warn level using the specified parameters.