Class LogHelper

  • All Implemented Interfaces:
    Helper<Object>

    public class LogHelper
    extends Object
    implements Helper<Object>
    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
    • Constructor Detail

      • LogHelper

        public LogHelper()
    • Method Detail

      • apply

        public CharSequence apply​(Object context,
                                  Options options)
                           throws IOException
        Description copied from interface: Helper
        Apply the helper to the context.
        Specified by:
        apply in interface Helper<Object>
        Parameters:
        context - The context object.
        options - The options object.
        Returns:
        A string result.
        Throws:
        IOException - If a template cannot be loaded.