httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1032084 - /httpd/httpd/trunk/modules/lua/lua_config.c
Date Sat, 06 Nov 2010 14:48:43 GMT
Author: sf
Date: Sat Nov  6 14:48:43 2010
New Revision: 1032084

URL: http://svn.apache.org/viewvc?rev=1032084&view=rev
Log:
add support for trace loglevels in mod_lua

Modified:
    httpd/httpd/trunk/modules/lua/lua_config.c

Modified: httpd/httpd/trunk/modules/lua/lua_config.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/lua/lua_config.c?rev=1032084&r1=1032083&r2=1032084&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/lua/lua_config.c (original)
+++ httpd/httpd/trunk/modules/lua/lua_config.c Sat Nov  6 14:48:43 2010
@@ -219,11 +219,59 @@ static int cmd_debug(lua_State *L)
     cmd_log_at(L, APLOG_DEBUG);
     return 0;
 }
+static int cmd_trace1(lua_State *L)
+{
+    cmd_log_at(L, APLOG_TRACE1);
+    return 0;
+}
+static int cmd_trace2(lua_State *L)
+{
+    cmd_log_at(L, APLOG_TRACE2);
+    return 0;
+}
+static int cmd_trace3(lua_State *L)
+{
+    cmd_log_at(L, APLOG_TRACE3);
+    return 0;
+}
+static int cmd_trace4(lua_State *L)
+{
+    cmd_log_at(L, APLOG_TRACE4);
+    return 0;
+}
+static int cmd_trace5(lua_State *L)
+{
+    cmd_log_at(L, APLOG_TRACE5);
+    return 0;
+}
+static int cmd_trace6(lua_State *L)
+{
+    cmd_log_at(L, APLOG_TRACE6);
+    return 0;
+}
+static int cmd_trace7(lua_State *L)
+{
+    cmd_log_at(L, APLOG_TRACE7);
+    return 0;
+}
+static int cmd_trace8(lua_State *L)
+{
+    cmd_log_at(L, APLOG_TRACE8);
+    return 0;
+}
 
 
 static const struct luaL_Reg cmd_methods[] = {
     {"foo", cmd_foo},
 
+    {"trace8", cmd_trace8},
+    {"trace7", cmd_trace7},
+    {"trace6", cmd_trace6},
+    {"trace5", cmd_trace5},
+    {"trace4", cmd_trace4},
+    {"trace3", cmd_trace3},
+    {"trace2", cmd_trace2},
+    {"trace1", cmd_trace1},
     {"debug", cmd_debug},
     {"info", cmd_info},
     {"notice", cmd_notice},



Mime
View raw message