local M = {} local log_levels = vim.log.levels local s_log_level = log_levels.INFO local logger = require("spacevim.logger").derive("zettel") function M.set_level(level) s_log_level = level end function M.notify(msg, level, opts) if level >= s_log_level then local tag = opts.tag or "[zettelkasten]" vim.notify(tag .. " " .. msg, level, opts) end end function M.info(msg) -- {{{ logger.info(msg) end -- }}} return M