 | ILogger Interface |
Namespace: HandlebarsDotNet.MvcAssembly: HandlebarsDotNet.Mvc (in HandlebarsDotNet.Mvc.dll) Version: 1.0.0-beta
Syntaxpublic interface class ILogger
type ILogger = interface end
The ILogger type exposes the following members.
Methods
| Name | Description |
---|
 | Log |
Logs a message.
|
 | Trace |
Logs a trace message.
|
 | Warn |
Logs a warning message.
|
Top
Remarks
Having a "Func<string> messageGenerator" argument may look strange, but that is a performance optimization:
If the message isn't used (maybe the
NullLogger is used for example), we don't have to pay the CPU cycles for generating the formatted string to be logged.
See Also