Repository navigation
DiGi.Serilog
public static class ModifyInheritance System.Object → Modify
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);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.
System.Boolean
True if the logging operation was successful; otherwise, false.
Logs an information message using the calling assembly.
public static bool Log(string? message, params object[] parameters);message System.String
The message template to be logged.
parameters System.Object[]
The arguments to be formatted into the message template.
System.Boolean
True if the logging operation was successful; otherwise, false.
Logs an error message and a corresponding exception using the calling assembly.
public static bool Log(System.Exception? exception, string? message);exception System.Exception
The exception to be logged.
message System.String
The error message to be logged.
System.Boolean
True if the logging operation was successful; otherwise, false.
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);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.
System.Boolean
True if the logging operation was successful; otherwise, false.
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);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.
System.Boolean
True if the logging operation was successful; otherwise, false.
Logs an information message for the given assembly.
public static bool Log(this System.Reflection.Assembly? assembly, string? message, params object[] 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.
System.Boolean
True if the logging operation was successful; otherwise, false.
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);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.
System.Boolean
True if the logging operation was successful; otherwise, false.
public static class SettingsInheritance System.Object → Settings
Gets the logger manager instance.
public static DiGi.Serilog.Classes.LoggerManager LoggerManager { get; }