Table of Contents

Interface ILogger

Namespace
Homa.Sdk.Logging
Assembly
Homa.Sdk.Logging.Abstractions.dll

Main interface for logging messages using Homa SDK's logging module.

public interface ILogger

Methods

Log(LogLevel, string, Object, Exception)

Logs a message.

void Log(LogLevel level, string message, Object context, Exception exception)

Parameters

level LogLevel

The level of the log.

message string

The content of the message to log.

context Object

An optional context object for the message.

exception Exception

An optional exception associated with the message.

LogError(Exception, Object)

Logs an exception.

void LogError(Exception exception, Object context = null)

Parameters

exception Exception

The exception to log.

context Object

An optional context object for the exception message.

LogError(string)

Logs an Error message.

void LogError(string message)

Parameters

message string

The content of the message to log

LogError(string, Exception)

Logs an Error message.

void LogError(string message, Exception exception)

Parameters

message string

The content of the message to log

exception Exception

An optional exception associated with the message.

LogError(string, Exception, Object)

Logs an Error message.

void LogError(string message, Exception exception, Object context)

Parameters

message string

The content of the message to log

exception Exception

An optional exception associated with the message.

context Object

An optional context object for the message.

LogError(string, Object)

Logs an Error message.

void LogError(string message, Object context)

Parameters

message string

The content of the message to log

context Object

An optional context object for the message.

LogInfo(string)

Logs an Info message.

void LogInfo(string message)

Parameters

message string

The content of the message to log

LogInfo(string, Object)

Logs a Info message.

void LogInfo(string message, Object context)

Parameters

message string

The content of the message to log

context Object

An optional context object for the message.

LogTrace(string)

Logs a Trace message.

void LogTrace(string message)

Parameters

message string

The content of the message to log

LogTrace(string, Object)

Logs a Trace message.

void LogTrace(string message, Object context)

Parameters

message string

The content of the message to log

context Object

An optional context object for the message.

LogWarning(string)

Logs a Warning message.

void LogWarning(string message)

Parameters

message string

The content of the message to log

LogWarning(string, Object)

Logs a Warning message.

void LogWarning(string message, Object context)

Parameters

message string

The content of the message to log

context Object

An optional context object for the message.