create pedestal telmere logger
This commit is contained in:
parent
46c6de9491
commit
a480f98cca
5 changed files with 222 additions and 8 deletions
|
|
@ -1,8 +1,10 @@
|
|||
(ns micro-blog.api
|
||||
(:require [io.pedestal.connector :as conn]
|
||||
[io.pedestal.http.http-kit :as hk]))
|
||||
[io.pedestal.http.http-kit :as hk]
|
||||
[io.pedestal.log :as log]))
|
||||
|
||||
(defn greet-handler [_request]
|
||||
(defn greet-handler [request]
|
||||
;; (log/info :in 'greet-handler :method (:request-method request) :uri (:uri request))
|
||||
{:status 200
|
||||
:body "Hello, world!\n"})
|
||||
|
||||
|
|
@ -16,4 +18,5 @@
|
|||
(hk/create-connector nil)))
|
||||
|
||||
(defn start []
|
||||
;; (log/info :in 'start :msg "Starting Pedestal server with Telmere logging")
|
||||
(conn/start! (create-connector)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue