Class ModuleLog
Class offering various methods to allow for logging in Dalamud modules.
Assembly: Dalamud.dll
View Source
public class ModuleLog
Methods
Verbose(string, params object?[])
Log a templated verbose message to the in-game debug log.
View Source
[MessageTemplateFormatMethod("messageTemplate")]
public void Verbose(string messageTemplate, params object?[] values)
Parameters
Type | Name | Description |
---|---|---|
System.String | messageTemplate | The message template. |
System.Object[] | values | Values to log. |
Verbose(Exception?, string, params object?[])
Log a templated verbose message to the in-game debug log.
View Source
[MessageTemplateFormatMethod("messageTemplate")]
public void Verbose(Exception? exception, string messageTemplate, params object?[] values)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | exception | The exception that caused the error. |
System.String | messageTemplate | The message template. |
System.Object[] | values | Values to log. |
Debug(string, params object?[])
Log a templated debug message to the in-game debug log.
View Source
[MessageTemplateFormatMethod("messageTemplate")]
public void Debug(string messageTemplate, params object?[] values)
Parameters
Type | Name | Description |
---|---|---|
System.String | messageTemplate | The message template. |
System.Object[] | values | Values to log. |
Debug(Exception?, string, params object?[])
Log a templated debug message to the in-game debug log.
View Source
[MessageTemplateFormatMethod("messageTemplate")]
public void Debug(Exception? exception, string messageTemplate, params object?[] values)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | exception | The exception that caused the error. |
System.String | messageTemplate | The message template. |
System.Object[] | values | Values to log. |
Information(string, params object?[])
Log a templated information message to the in-game debug log.
View Source
[MessageTemplateFormatMethod("messageTemplate")]
public void Information(string messageTemplate, params object?[] values)
Parameters
Type | Name | Description |
---|---|---|
System.String | messageTemplate | The message template. |
System.Object[] | values | Values to log. |
Information(Exception?, string, params object?[])
Log a templated information message to the in-game debug log.
View Source
[MessageTemplateFormatMethod("messageTemplate")]
public void Information(Exception? exception, string messageTemplate, params object?[] values)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | exception | The exception that caused the error. |
System.String | messageTemplate | The message template. |
System.Object[] | values | Values to log. |
Warning(string, params object?[])
Log a templated warning message to the in-game debug log.
View Source
[MessageTemplateFormatMethod("messageTemplate")]
public void Warning(string messageTemplate, params object?[] values)
Parameters
Type | Name | Description |
---|---|---|
System.String | messageTemplate | The message template. |
System.Object[] | values | Values to log. |
Warning(Exception?, string, params object?[])
Log a templated warning message to the in-game debug log.
View Source
[MessageTemplateFormatMethod("messageTemplate")]
public void Warning(Exception? exception, string messageTemplate, params object?[] values)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | exception | The exception that caused the error. |
System.String | messageTemplate | The message template. |
System.Object[] | values | Values to log. |
Error(string, params object?[])
Log a templated error message to the in-game debug log.
View Source
[MessageTemplateFormatMethod("messageTemplate")]
public void Error(string messageTemplate, params object?[] values)
Parameters
Type | Name | Description |
---|---|---|
System.String | messageTemplate | The message template. |
System.Object[] | values | Values to log. |
Error(Exception?, string, params object?[])
Log a templated error message to the in-game debug log.
View Source
[MessageTemplateFormatMethod("messageTemplate")]
public void Error(Exception? exception, string messageTemplate, params object?[] values)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | exception | The exception that caused the error. |
System.String | messageTemplate | The message template. |
System.Object[] | values | Values to log. |
Fatal(string, params object?[])
Log a templated fatal message to the in-game debug log.
View Source
[MessageTemplateFormatMethod("messageTemplate")]
public void Fatal(string messageTemplate, params object?[] values)
Parameters
Type | Name | Description |
---|---|---|
System.String | messageTemplate | The message template. |
System.Object[] | values | Values to log. |
Fatal(Exception?, string, params object?[])
Log a templated fatal message to the in-game debug log.
View Source
[MessageTemplateFormatMethod("messageTemplate")]
public void Fatal(Exception? exception, string messageTemplate, params object?[] values)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | exception | The exception that caused the error. |
System.String | messageTemplate | The message template. |
System.Object[] | values | Values to log. |
WriteLog(LogEventLevel, string, Exception?, params object?[])
Log a templated message to the in-game debug log.
View Source
[MessageTemplateFormatMethod("messageTemplate")]
public void WriteLog(LogEventLevel level, string messageTemplate, Exception? exception = null, params object?[] values)
Parameters
Type | Name | Description |
---|---|---|
Serilog.Events.LogEventLevel | level | The log level to log with. |
System.String | messageTemplate | The message template to log. |
System.Exception | exception | The exception to log. |
System.Object[] | values | Values to log. |