Changeset 3183
- Timestamp:
- May 19, 2010 6:10:48 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r3175 r3183 173 173 puts (" --log-level=N Set log max level to N (0(none) to 6(trace)) (default=5)"); 174 174 puts (" --app-log-level=N Set log max level for stdout display (default=4)"); 175 puts (" --log-append Append instead of overwrite existing log file.\n"); 175 176 puts (" --color Use colorful logging (default yes on Win32)"); 176 177 puts (" --no-color Disable colorful logging"); … … 483 484 int option_index; 484 485 enum { OPT_CONFIG_FILE=127, OPT_LOG_FILE, OPT_LOG_LEVEL, OPT_APP_LOG_LEVEL, 485 OPT_ COLOR, OPT_NO_COLOR, OPT_LIGHT_BG,486 OPT_LOG_APPEND, OPT_COLOR, OPT_NO_COLOR, OPT_LIGHT_BG, 486 487 OPT_HELP, OPT_VERSION, OPT_NULL_AUDIO, OPT_SND_AUTO_CLOSE, 487 488 OPT_LOCAL_PORT, OPT_IP_ADDR, OPT_PROXY, OPT_OUTBOUND_PROXY, … … 522 523 { "log-level", 1, 0, OPT_LOG_LEVEL}, 523 524 { "app-log-level",1,0,OPT_APP_LOG_LEVEL}, 525 { "log-append", 0, 0, OPT_LOG_APPEND}, 524 526 { "color", 0, 0, OPT_COLOR}, 525 527 { "no-color", 0, 0, OPT_NO_COLOR}, … … 702 704 break; 703 705 706 case OPT_LOG_APPEND: 707 cfg->log_cfg.log_file_flags |= PJ_O_APPEND; 708 break; 709 704 710 case OPT_COLOR: 705 711 cfg->log_cfg.decor |= PJ_LOG_HAS_COLOR; … … 1630 1636 } 1631 1637 1638 if (config->log_cfg.log_file_flags & PJ_O_APPEND) { 1639 pj_strcat2(&cfg, "--log-append\n"); 1640 } 1632 1641 1633 1642 /* Save account settings. */
Note: See TracChangeset
for help on using the changeset viewer.