Summary
Writes a debug message to the log using the specified log message action.
Evaluation message only if verbosity same or more verbose.
Syntax
[CakeMethodAlias]
[CakeAliasCategory("Debug")]
public static void Debug(this ICakeContext context, LogAction logAction)
Examples
Debug(logAction=>logAction("Hello {0}! Today is an {1:dddd}", "World", DateTime.Now));
Attributes
Parameters
Name |
Type |
Description |
context |
ICakeContext |
the context. |
logAction |
LogAction |
The function called for message when logging. |
Return Value