Zum Hauptinhalt springen

IPipelineLogger

Namespace: Meshmakers.Octo.Sdk.Common.EtlDataPipeline

The pipeline logger that is used to log node and execution messages

public interface IPipelineLogger

Methods​

Debug(String, String, String, Object[])​

Logs a message with debug severity

void Debug(string nodeId, string nodePath, string message, Object[] args)

Parameters​

nodeId String
The node ID

nodePath String
The path to the node

message String
The message to log

args Object[]
Arguments for a logging message

Info(String, String, String, Object[])​

Logs a message with information severity

void Info(string nodeId, string nodePath, string message, Object[] args)

Parameters​

nodeId String
The node ID

nodePath String
The path to the node

message String
The message to log

args Object[]
Arguments for a logging message

Warning(String, String, String, Object[])​

Logs a message with warning severity

void Warning(string nodeId, string nodePath, string message, Object[] args)

Parameters​

nodeId String
The node ID

nodePath String
The path to the node

message String
The message to log

args Object[]
Arguments for the logging message

Error(String, String, String, Object[])​

Logs a message with error severity

void Error(string nodeId, string nodePath, string message, Object[] args)

Parameters​

nodeId String
The node ID

nodePath String
The path to the node

message String
The message to log

args Object[]
Arguments for a logging message

Error(String, String, Exception, String, Object[])​

Logs an exception with error severity

void Error(string nodeId, string nodePath, Exception exception, string message, Object[] args)

Parameters​

nodeId String
The node ID

nodePath String
The path to the node

exception Exception
The exception

message String
The message to log

args Object[]
Arguments for a logging message

Log(LogLevel, String, String, String, IReadOnlyList<KeyValuePair<String, Object>>)​

Logs a message as a value together with structured attributes (used by Logger@1).

void Log(LogLevel logLevel, string nodeId, string nodePath, string message, IReadOnlyList<KeyValuePair<string, object>> attributes)

Parameters​

logLevel LogLevel
The severity; Trace is logged as Debug, Critical as Error, None as Information

nodeId String
The node ID

nodePath String
The path to the node

message String
The message, logged verbatim

attributes IReadOnlyList<KeyValuePair<String, Object>>
Structured attributes of the record, in the order they are given

Remarks:

Unlike the other members, message is never treated as a format template: braces such as {0} or {name} are logged verbatim. Every attribute is emitted as a structured property of the log record (an NLog event property, i.e. a JSON field of the adapter's log line), so Dash0 can filter and group by it.

A default interface member, so implementations outside this SDK keep compiling. The default forwards the message without arguments to the level's method (which logs it verbatim in the SDK's loggers) and drops the attributes; override it to keep them.