Class SLF4JLogChute

  • All Implemented Interfaces:
    org.apache.velocity.runtime.log.LogChute

    public class SLF4JLogChute
    extends Object
    implements org.apache.velocity.runtime.log.LogChute
    Provides a LogChute for velocity to log to SLF4J
    • Constructor Detail

      • SLF4JLogChute

        public SLF4JLogChute()
    • Method Detail

      • init

        public void init​(org.apache.velocity.runtime.RuntimeServices rs)
                  throws Exception
        Specified by:
        init in interface org.apache.velocity.runtime.log.LogChute
        Throws:
        Exception
        See Also:
        LogChute.init(RuntimeServices)
      • log

        public void log​(int level,
                        String message)
        Specified by:
        log in interface org.apache.velocity.runtime.log.LogChute
        See Also:
        LogChute.log(int, String)
      • log

        public void log​(int level,
                        String message,
                        Throwable t)
        Specified by:
        log in interface org.apache.velocity.runtime.log.LogChute
        See Also:
        LogChute.log(int, String, Throwable)
      • isLevelEnabled

        public boolean isLevelEnabled​(int level)
        Specified by:
        isLevelEnabled in interface org.apache.velocity.runtime.log.LogChute
        See Also:
        LogChute.isLevelEnabled(int)