Use the new Log module in Crystal 0.34.0

This commit is contained in:
Alex Ling
2020-04-07 12:07:58 +00:00
parent c572c56a39
commit 2c31f594a4
7 changed files with 40 additions and 41 deletions

View File

@@ -7,13 +7,13 @@ class Context
property config : Config
property library : Library
property storage : Storage
property logger : MLogger
property logger : Logger
property queue : MangaDex::Queue
def initialize(@config, @logger, @library, @storage, @queue)
end
{% for lvl in LEVELS %}
{% for lvl in Logger::LEVELS %}
def {{lvl.id}}(msg)
@logger.{{lvl.id}} msg
end