[Freeswitch-trunk] [commit] r12473 - freeswitch/trunk/src/mod/loggers/mod_console

FreeSWITCH SVN mrene at freeswitch.org
Thu Mar 5 13:38:32 PST 2009


Author: mrene
Date: Thu Mar  5 15:38:32 2009
New Revision: 12473

Log:
Add docs and complete to mod_console

Modified:
   freeswitch/trunk/src/mod/loggers/mod_console/mod_console.c

Modified: freeswitch/trunk/src/mod/loggers/mod_console/mod_console.c
==============================================================================
--- freeswitch/trunk/src/mod/loggers/mod_console/mod_console.c	(original)
+++ freeswitch/trunk/src/mod/loggers/mod_console/mod_console.c	Thu Mar  5 15:38:32 2009
@@ -328,8 +328,9 @@
 	/* connect my internal structure to the blank pointer passed to me */
 	*module_interface = switch_loadable_module_create_module_interface(pool, modname);
 
-	SWITCH_ADD_API(api_interface, "console", "Console", console_api_function, "");
-
+	SWITCH_ADD_API(api_interface, "console", "Console", console_api_function, "loglevel [level]|colorize [on|off]");
+	switch_console_set_complete("add console loglevel");
+	switch_console_set_complete("add console colorize");
 
 	/* setup my logger function */
 	switch_log_bind_logger(switch_console_logger, SWITCH_LOG_DEBUG, SWITCH_TRUE);



More information about the Freeswitch-trunk mailing list