Skip to main content

Class ModuleLog

Class offering various methods to allow for logging in Dalamud modules.

Assembly: Dalamud.dll
View Source
Declaration
public class ModuleLog

Methods

Verbose(string, params object?[])

Log a templated verbose message to the in-game debug log.

View Source
Declaration
[MessageTemplateFormatMethod("messageTemplate")]
public void Verbose(string messageTemplate, params object?[] values)
Parameters
TypeNameDescription
System.StringmessageTemplateThe message template.
System.Object[]valuesValues to log.

Verbose(Exception?, string, params object?[])

Log a templated verbose message to the in-game debug log.

View Source
Declaration
[MessageTemplateFormatMethod("messageTemplate")]
public void Verbose(Exception? exception, string messageTemplate, params object?[] values)
Parameters
TypeNameDescription
System.ExceptionexceptionThe exception that caused the error.
System.StringmessageTemplateThe message template.
System.Object[]valuesValues to log.

Debug(string, params object?[])

Log a templated debug message to the in-game debug log.

View Source
Declaration
[MessageTemplateFormatMethod("messageTemplate")]
public void Debug(string messageTemplate, params object?[] values)
Parameters
TypeNameDescription
System.StringmessageTemplateThe message template.
System.Object[]valuesValues to log.

Debug(Exception?, string, params object?[])

Log a templated debug message to the in-game debug log.

View Source
Declaration
[MessageTemplateFormatMethod("messageTemplate")]
public void Debug(Exception? exception, string messageTemplate, params object?[] values)
Parameters
TypeNameDescription
System.ExceptionexceptionThe exception that caused the error.
System.StringmessageTemplateThe message template.
System.Object[]valuesValues to log.

Information(string, params object?[])

Log a templated information message to the in-game debug log.

View Source
Declaration
[MessageTemplateFormatMethod("messageTemplate")]
public void Information(string messageTemplate, params object?[] values)
Parameters
TypeNameDescription
System.StringmessageTemplateThe message template.
System.Object[]valuesValues to log.

Information(Exception?, string, params object?[])

Log a templated information message to the in-game debug log.

View Source
Declaration
[MessageTemplateFormatMethod("messageTemplate")]
public void Information(Exception? exception, string messageTemplate, params object?[] values)
Parameters
TypeNameDescription
System.ExceptionexceptionThe exception that caused the error.
System.StringmessageTemplateThe message template.
System.Object[]valuesValues to log.

Warning(string, params object?[])

Log a templated warning message to the in-game debug log.

View Source
Declaration
[MessageTemplateFormatMethod("messageTemplate")]
public void Warning(string messageTemplate, params object?[] values)
Parameters
TypeNameDescription
System.StringmessageTemplateThe message template.
System.Object[]valuesValues to log.

Warning(Exception?, string, params object?[])

Log a templated warning message to the in-game debug log.

View Source
Declaration
[MessageTemplateFormatMethod("messageTemplate")]
public void Warning(Exception? exception, string messageTemplate, params object?[] values)
Parameters
TypeNameDescription
System.ExceptionexceptionThe exception that caused the error.
System.StringmessageTemplateThe message template.
System.Object[]valuesValues to log.

Error(string, params object?[])

Log a templated error message to the in-game debug log.

View Source
Declaration
[MessageTemplateFormatMethod("messageTemplate")]
public void Error(string messageTemplate, params object?[] values)
Parameters
TypeNameDescription
System.StringmessageTemplateThe message template.
System.Object[]valuesValues to log.

Error(Exception?, string, params object?[])

Log a templated error message to the in-game debug log.

View Source
Declaration
[MessageTemplateFormatMethod("messageTemplate")]
public void Error(Exception? exception, string messageTemplate, params object?[] values)
Parameters
TypeNameDescription
System.ExceptionexceptionThe exception that caused the error.
System.StringmessageTemplateThe message template.
System.Object[]valuesValues to log.

Fatal(string, params object?[])

Log a templated fatal message to the in-game debug log.

View Source
Declaration
[MessageTemplateFormatMethod("messageTemplate")]
public void Fatal(string messageTemplate, params object?[] values)
Parameters
TypeNameDescription
System.StringmessageTemplateThe message template.
System.Object[]valuesValues to log.

Fatal(Exception?, string, params object?[])

Log a templated fatal message to the in-game debug log.

View Source
Declaration
[MessageTemplateFormatMethod("messageTemplate")]
public void Fatal(Exception? exception, string messageTemplate, params object?[] values)
Parameters
TypeNameDescription
System.ExceptionexceptionThe exception that caused the error.
System.StringmessageTemplateThe message template.
System.Object[]valuesValues to log.

WriteLog(LogEventLevel, string, Exception?, params object?[])

Log a templated message to the in-game debug log.

View Source
Declaration
[MessageTemplateFormatMethod("messageTemplate")]
public void WriteLog(LogEventLevel level, string messageTemplate, Exception? exception = null, params object?[] values)
Parameters
TypeNameDescription
Serilog.Events.LogEventLevellevelThe log level to log with.
System.StringmessageTemplateThe message template to log.
System.ExceptionexceptionThe exception to log.
System.Object[]valuesValues to log.