LoggingAliases.

Verbose(ICakeContext, LogAction) Method

Summary

Writes a verbose message to the log using the specified log message action. Evaluation message only if verbosity same or more verbose.
Namespace
Cake.Common.Diagnostics
Containing Type
LoggingAliases

Syntax

[CakeMethodAlias]
[CakeAliasCategory("Verbose")]
public static void Verbose(this ICakeContext context, LogAction logAction)

Examples

Verbose(logAction=>logAction("Hello {0}! Today is an {1:dddd}", "World", DateTime.Now));

Attributes

Type Description
CakeMethodAliasAttribute An attribute used to mark script method aliases.
CakeAliasCategoryAttribute An attribute used for documentation of alias methods/properties.

Parameters

Name Type Description
context ICakeContext the context.
logAction LogAction The function called for message when logging.

Return Value

Type Description
void