]> granicus.if.org Git - apache/commitdiff
add support for trace loglevels in mod_lua
authorStefan Fritsch <sf@apache.org>
Sat, 6 Nov 2010 14:48:43 +0000 (14:48 +0000)
committerStefan Fritsch <sf@apache.org>
Sat, 6 Nov 2010 14:48:43 +0000 (14:48 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1032084 13f79535-47bb-0310-9956-ffa450edef68

modules/lua/lua_config.c

index eb72d648e2640706dc09612760f2ba60625fb8f5..eef9c97ed375a08b44241a032dbea1a6f0aabfbc 100644 (file)
@@ -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},