            nick    :nick
            host    :host
            command :command} incoming-message]
-           (println "Received message from" nick "to" target ":" text "(" host command ")")
-           (println incoming-message)
+           (log/info (str "Received message from" nick "to" target ":" text "(" host command ")"))
+           (log/info incoming-message)
            (if (message-for-me? @dyncfg/bot-nick (-> @dyncfg/configuration :bot :prefix) incoming-message)
                (let [reply  (create-reply incoming-message)
                      output (prepare-reply-text incoming-message nick text)]

          channels (:channels configuration)
          chanlist (clojure.string/split channels #" ")
          nick     (:nick configuration)]
        (println "Connecting to" server "on port" port)
        (let [conn (irc/connect server port nick
                                :callbacks {:privmsg on-incoming-message})]
            (println "Connected, joining to channels" channels)
            (reset! dyncfg/connection conn)
            (reset! dyncfg/bot-nick nick)
            (doseq [channel chanlist]
                (println channel)
                (irc/join @dyncfg/connection (clojure.string/trim channel)))
            (println "Connected..."))))



(require '[irclj.core :as irc])
(require '[clj-calendar.calendar :as calendar])

(require '[clojure.tools.logging :as log])

(require '[clj-mrazik.dyncfg   :as dyncfg])
(require '[clj-mrazik.schedule :as schedule])
