Debug Method
Writes a debug-level log entry.
Definition
Namespace: GHost.Core.Logging.Context
Type: ILogger
Assembly: GHost.Core.dll
Overloads
| Name | Description |
|---|---|
| Debug(string) | Writes a debug log entry. |
| Debug(string, string, object[]) | Writes a formatted debug log entry with a log code. |
| Debug(string, ILogContext, string, object[]) | Writes a formatted debug log entry with a log code and context. |
Remarks
The overloads of this method that include a code parameter allow you to specify a unique code (mnemonic or otherwise) that identifies the log message. See the Log Codes page for more information on log codes and how to use them effectively.
Debug(string)
Writes a debug log entry.
void Debug(string message);
Parameters
message – The log message.
Debug(string, string, object[])
Writes a formatted debug log entry with a log code.
void Debug(string code, string message, params object[] args);
Parameters
code string
A unique code (mnemonic or otherwise) that identifies the log message.
message string
A string containing the message and format items to log.
args object[]
A params array of objects that match the format items in the message to provide them with values.
Debug(string, ILogContext, string, object[])
Writes a formatted debug log entry with a log code and context.
void Debug(string code, ILogContext context, string message, params object[] args);
Parameters
code string
A unique code (mnemonic or otherwise) that identifies the log message.
context ILogContext
An instance to provide an additional log context to the log entry.
message string
A string containing the message and format items to log.
args object[]
A params array of objects that match the format items in the message to provide them with values.