Summary
Writes an informational message to the log using the specified format information.
- Namespace
- Cake
.Common .Diagnostics - Containing Type
- LoggingAliases
Syntax
[CakeMethodAlias]
[CakeAliasCategory("Information")]
public static void Information(this ICakeContext context, string format, params object[] args)
Examples
Information("Hello {0}! Today is an {1:dddd}", "World", DateTime.Now);
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. |
format | string | The format. |
args | object[] | The arguments. |
Return Value
Type | Description |
---|---|
void |