package com.github.skanukov.sparklet.config;

import static spark.Spark.get;

/**
 * Handles routes for application.
 */
public final class Router {
    /**
     * Creates router.
     */
    public Router() {
    }

    /**
     * Defines routes for application.
     *
     * @return Router for fluent interface.
     */
    public Router route() {
        get("/hello", (req, res) -> "Hello World");
        return this;
    }
}

@@ -39,16 +39,74 @@
 onfig;%0A%0A
+import org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0A
 import s
@@ -200,16 +200,94 @@
 outer %7B%0A
+%0A    private final Logger logger = LoggerFactory.getLogger(this.getClass());%0A%0A
     /**%0A
@@ -335,24 +335,64 @@
  Router() %7B%0A
+        logger.info(%22Router created.%22);%0A
     %7D%0A%0A    /

Add logging example