- use logger

This commit is contained in:
Alex Ling
2020-02-16 21:24:19 +00:00
parent bb936b1fa6
commit 7168c6bfb2
10 changed files with 125 additions and 40 deletions

View File

@@ -1,6 +1,16 @@
require "./server"
require "./context"
require "./config"
require "./library"
require "./storage"
require "./logger"
config = Config.load
logger = MLogger.new config
library = Library.new config.library_path, config.scan_interval, logger
storage = Storage.new config.db_path, logger
context = Context.new config, logger, library, storage
context = Context.new
server = Server.new context
server.start