Add docs and complete to mod_console
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12473 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
975366dba3
commit
d48b6e193b
|
@ -328,8 +328,9 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_console_load)
|
||||||
/* connect my internal structure to the blank pointer passed to me */
|
/* connect my internal structure to the blank pointer passed to me */
|
||||||
*module_interface = switch_loadable_module_create_module_interface(pool, modname);
|
*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 */
|
/* setup my logger function */
|
||||||
switch_log_bind_logger(switch_console_logger, SWITCH_LOG_DEBUG, SWITCH_TRUE);
|
switch_log_bind_logger(switch_console_logger, SWITCH_LOG_DEBUG, SWITCH_TRUE);
|
||||||
|
|
Loading…
Reference in New Issue