Summary
Writes an debug message to the log using the specified formattable string.
- Namespace
- Cake
.Common .Diagnostics - Containing Type
- LoggingAliases
Syntax
[CakeMethodAlias]
[CakeAliasCategory("Debug")]
public static void Debug(this ICakeContext context, FormattableString formattable)
Examples
Debug($"Hello {"World"}! Today is an {DateTime.Now:dddd}");
Attributes
| Type | Description |
|---|---|
| Cake |
An attribute used to mark script method aliases. |
| Cake |
An attribute used for documentation of alias methods/properties. |
Parameters
| Name | Type | Description |
|---|---|---|
| context | ICakeContext | The context. |
| formattable | FormattableString | The string to be formatted. |
Return Value
| Type | Description |
|---|---|
| void |
