Class LogHelper
java.lang.Object
com.github.jknack.handlebars.helper.LogHelper
Log a message. Usage:
{{log "Look at me!" }}
{{log "This is logged" foo "And so is this"}}
{{log "Log!" level="error"}}
{{#log}}
Hi {{name}}!
{{/log}}
- Since:
- 4.0.1
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INSTANCE
A singleton instance of this helper. -
NAME
The helper's name.- See Also:
-
-
Constructor Details
-
LogHelper
public LogHelper()
-
-
Method Details
-
apply
Description copied from interface:HelperApply the helper to the context.- Specified by:
applyin interfaceHelper<Object>- Parameters:
context- The context object.options- The options object.- Returns:
- A string result.
- Throws:
IOException- If a template cannot be loaded.
-