You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
lua m.log(2, "4444") where is the log message? #3035
Revisiting this one. m.log(level, text) writes to the ModSecurity debug log at the given level (src/engine/lua.cc), nothing else; it never reaches the nginx error log or the console. To see it, set SecDebugLog to a file and SecDebugLogLevel to at least the level you pass.
Let's close this one, with that sentence added to the Lua documentation.
Activity
fzipi commentedon Oct 12, 2026
Revisiting this one.
m.log(level, text)writes to the ModSecurity debug log at the given level (src/engine/lua.cc), nothing else; it never reaches the nginx error log or the console. To see it, setSecDebugLogto a file andSecDebugLogLevelto at least the level you pass.Let's close this one, with that sentence added to the Lua documentation.
airween commentedon Nov 1, 2026
Thanks @fzipi,
I sent a PR to documentation as you suggested, now closing this one.