Click or drag to resize
ILogger Interface
The interface used by HandlebarsViewEngine for logging purposes.

Namespace: HandlebarsDotNet.Mvc
Assembly: HandlebarsDotNet.Mvc (in HandlebarsDotNet.Mvc.dll) Version: 1.0.0-beta
Syntax
public interface ILogger

The ILogger type exposes the following members.

Methods
  NameDescription
Public methodLog
Logs a message.
Public methodTrace
Logs a trace message.
Public methodWarn
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