bunkerized-nginx/lua/logger.lua
2022-06-03 17:24:14 +02:00

9 lines
157 B
Lua

local M = {}
local errlog = require "ngx.errlog"
function M.log (level, prefix, msg)
errlog.raw_log(level, "[" .. prefix .. "] " .. msg)
end
return M