Package org.takes.tk

Class TkSlf4j

  • All Implemented Interfaces:
    Take

    public final class TkSlf4j
    extends Object
    implements Take
    Logs Take.act() calls.

    The class is immutable and thread-safe.

    Since:
    0.11.2
    • Constructor Detail

      • TkSlf4j

        public TkSlf4j​(Take take)
        Ctor.
        Parameters:
        take - Original
      • TkSlf4j

        public TkSlf4j​(Take take,
                       Class<?> tgt)
        Ctor.
        Parameters:
        take - Original
        tgt - Log target
      • TkSlf4j

        public TkSlf4j​(Take take,
                       String tgt)
        Ctor.
        Parameters:
        take - Original
        tgt - Log target
    • Method Detail

      • act

        public Response act​(Request req)
                     throws Exception
        Description copied from interface: Take
        Convert request to response.
        Specified by:
        act in interface Take
        Parameters:
        req - Request to process
        Returns:
        Response
        Throws:
        Exception - If fails