Skip to content

DiGi.Serilog

github-actions[bot] edited this page Jul 15, 2026 · 2 revisions

DiGi.Serilog Namespace

Classes

Modify Class

public static class Modify

Inheritance System.Object → Modify

Methods

Modify.Log(LogEventLevel, string, object[]) Method

Logs a message with a specified event level using the calling assembly.

public static bool Log(DiGi.Serilog.Enums.LogEventLevel logEventLevel, string? message, params object[] parameters);

Parameters

logEventLevel LogEventLevel

The severity level of the log event.

message System.String

The message template to be logged.

parameters System.Object[]

The arguments to be formatted into the message template.

Returns

System.Boolean
True if the logging operation was successful; otherwise, false.

Modify.Log(string, object[]) Method

Logs an information message using the calling assembly.

public static bool Log(string? message, params object[] parameters);

Parameters

message System.String

The message template to be logged.

parameters System.Object[]

The arguments to be formatted into the message template.

Returns

System.Boolean
True if the logging operation was successful; otherwise, false.

Modify.Log(Exception, string) Method

Logs an error message and a corresponding exception using the calling assembly.

public static bool Log(System.Exception? exception, string? message);

Parameters

exception System.Exception

The exception to be logged.

message System.String

The error message to be logged.

Returns

System.Boolean
True if the logging operation was successful; otherwise, false.

Modify.Log(Exception, string, object[]) Method

Logs an error message with arguments and a corresponding exception using the calling assembly.

public static bool Log(System.Exception? exception, string? message, params object[] parameters);

Parameters

exception System.Exception

The exception to be logged.

message System.String

The message template to be logged.

parameters System.Object[]

The arguments to be formatted into the message template.

Returns

System.Boolean
True if the logging operation was successful; otherwise, false.

Modify.Log(this Assembly, LogEventLevel, string, object[]) Method

Logs a message with a specified event level for the given assembly.

public static bool Log(this System.Reflection.Assembly? assembly, DiGi.Serilog.Enums.LogEventLevel logEventLevel, string? message, params object[] parameters);

Parameters

assembly System.Reflection.Assembly

The assembly to associate with the logger.

logEventLevel LogEventLevel

The severity level of the log event.

message System.String

The message template to be logged.

parameters System.Object[]

The arguments to be formatted into the message template.

Returns

System.Boolean
True if the logging operation was successful; otherwise, false.

Modify.Log(this Assembly, string, object[]) Method

Logs an information message for the given assembly.

public static bool Log(this System.Reflection.Assembly? assembly, string? message, params object[] parameters);

Parameters

assembly System.Reflection.Assembly

The assembly to associate with the logger.

message System.String

The message template to be logged.

parameters System.Object[]

The arguments to be formatted into the message template.

Returns

System.Boolean
True if the logging operation was successful; otherwise, false.

Modify.Log(this Assembly, Exception, string) Method

Logs an error message and a corresponding exception for the given assembly.

public static bool Log(this System.Reflection.Assembly? assembly, System.Exception? exception, string? message);

Parameters

assembly System.Reflection.Assembly

The assembly to associate with the logger.

exception System.Exception

The exception to be logged.

message System.String

The error message to be logged.

Returns

System.Boolean
True if the logging operation was successful; otherwise, false.

Settings Class

public static class Settings

Inheritance System.Object → Settings

Properties

Settings.LoggerManager Property

Gets the logger manager instance.

public static DiGi.Serilog.Classes.LoggerManager LoggerManager { get; }

Property Value

LoggerManager