mirror of
https://github.com/mistricky/codesnap.nvim.git
synced 2024-12-31 22:17:29 -08:00
11 lines
256 B
Lua
11 lines
256 B
Lua
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
|