Changeset 2159 for pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
- Timestamp:
- Jul 19, 2008 5:53:47 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r2154 r2159 159 159 puts (" --log-level=N Set log max level to N (0(none) to 6(trace)) (default=5)"); 160 160 puts (" --app-log-level=N Set log max level for stdout display (default=4)"); 161 puts (" --color Use colorful logging (default yes on Win32)"); 162 puts (" --no-color Disable colorful logging"); 163 161 164 puts (""); 162 165 puts ("SIP Account options:"); … … 443 446 int option_index; 444 447 enum { OPT_CONFIG_FILE=127, OPT_LOG_FILE, OPT_LOG_LEVEL, OPT_APP_LOG_LEVEL, 448 OPT_COLOR, OPT_NO_COLOR, 445 449 OPT_HELP, OPT_VERSION, OPT_NULL_AUDIO, OPT_SND_AUTO_CLOSE, 446 450 OPT_LOCAL_PORT, OPT_IP_ADDR, OPT_PROXY, OPT_OUTBOUND_PROXY, … … 477 481 { "log-level", 1, 0, OPT_LOG_LEVEL}, 478 482 { "app-log-level",1,0,OPT_APP_LOG_LEVEL}, 483 { "color", 0, 0, OPT_COLOR}, 484 { "no-color", 0, 0, OPT_NO_COLOR}, 479 485 { "help", 0, 0, OPT_HELP}, 480 486 { "version", 0, 0, OPT_VERSION}, … … 638 644 break; 639 645 646 case OPT_COLOR: 647 cfg->log_cfg.decor |= PJ_LOG_HAS_COLOR; 648 break; 649 650 case OPT_NO_COLOR: 651 cfg->log_cfg.decor &= ~PJ_LOG_HAS_COLOR; 652 break; 653 640 654 case OPT_HELP: 641 655 usage(); … … 3757 3771 len = write_settings(&app_config, settings, sizeof(settings)); 3758 3772 if (len < 1) 3759 PJ_LOG( 3,(THIS_FILE, "Error: not enough buffer"));3773 PJ_LOG(1,(THIS_FILE, "Error: not enough buffer")); 3760 3774 else 3761 3775 PJ_LOG(3,(THIS_FILE, … … 3784 3798 len = write_settings(&app_config, settings, sizeof(settings)); 3785 3799 if (len < 1) 3786 PJ_LOG( 3,(THIS_FILE, "Error: not enough buffer"));3800 PJ_LOG(1,(THIS_FILE, "Error: not enough buffer")); 3787 3801 else { 3788 3802 pj_oshandle_t fd; … … 4082 4096 4083 4097 if (transport_id == -1) { 4084 PJ_LOG( 3,(THIS_FILE, "Error: no transport is configured"));4098 PJ_LOG(1,(THIS_FILE, "Error: no transport is configured")); 4085 4099 status = -1; 4086 4100 goto on_error;
Note: See TracChangeset
for help on using the changeset viewer.