codesnap.nvim/lua/codesnap/utils/logger.lua

12 lines
256 B
Lua
Raw Normal View History

2024-02-19 14:27:17 +00:00
local logger = {}
function logger.log(level, message)
vim.api.nvim_notify("[" .. level .. "] CodeSnap: " .. tostring(vim.inspect(message)), vim.log.levels[level], {})
end
function logger.error(message)
logger.log("ERROR", message)
end
return logger