Ignore:
Timestamp:
Jul 19, 2008 5:53:47 PM (16 years ago)
Author:
bennylp
Message:

Ticket #571: Coloring for logs in Linux/UNIX, two more spaces in logs and runtime log colors configuration (thanks Ondrej.Sterbak)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c

    r2157 r2159  
    4141 
    4242    pj_strerror(status, errmsg, sizeof(errmsg)); 
    43     PJ_LOG(3,(sender, "%s: %s [status=%d]", title, errmsg, status)); 
     43    PJ_LOG(1,(sender, "%s: %s [status=%d]", title, errmsg, status)); 
    4444} 
    4545 
     
    7070    cfg->console_level = 4; 
    7171    cfg->decor = PJ_LOG_HAS_SENDER | PJ_LOG_HAS_TIME |  
    72                  PJ_LOG_HAS_MICRO_SEC | PJ_LOG_HAS_NEWLINE; 
     72                 PJ_LOG_HAS_MICRO_SEC | PJ_LOG_HAS_NEWLINE | 
     73                 PJ_LOG_HAS_SPACE; 
     74#if defined(PJ_WIN32) && PJ_WIN32 != 0 
     75    cfg->decor |= PJ_LOG_HAS_COLOR; 
     76#endif 
    7377} 
    7478 
Note: See TracChangeset for help on using the changeset viewer.