summaryrefslogtreecommitdiff
path: root/pjsip
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-07-19 17:53:47 +0000
committerBenny Prijono <bennylp@teluu.com>2008-07-19 17:53:47 +0000
commit2f89f6ad8e113cb108795d7ef2b6d81eb92c9a2a (patch)
tree6d99dd7ac0fc51a29039b25a0ccf009e7b3a4df3 /pjsip
parent2a67327941910feadbfd953e4f8b53e675d5fe1a (diff)
Ticket #571: Coloring for logs in Linux/UNIX, two more spaces in logs and runtime log colors configuration (thanks Ondrej.Sterbak)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2159 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-rw-r--r--pjsip/src/pjsua-lib/pjsua_core.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_core.c b/pjsip/src/pjsua-lib/pjsua_core.c
index bd21a4b8..fe95348c 100644
--- a/pjsip/src/pjsua-lib/pjsua_core.c
+++ b/pjsip/src/pjsua-lib/pjsua_core.c
@@ -40,7 +40,7 @@ PJ_DEF(void) pjsua_perror( const char *sender, const char *title,
char errmsg[PJ_ERR_MSG_SIZE];
pj_strerror(status, errmsg, sizeof(errmsg));
- PJ_LOG(3,(sender, "%s: %s [status=%d]", title, errmsg, status));
+ PJ_LOG(1,(sender, "%s: %s [status=%d]", title, errmsg, status));
}
@@ -69,7 +69,11 @@ PJ_DEF(void) pjsua_logging_config_default(pjsua_logging_config *cfg)
cfg->level = 5;
cfg->console_level = 4;
cfg->decor = PJ_LOG_HAS_SENDER | PJ_LOG_HAS_TIME |
- PJ_LOG_HAS_MICRO_SEC | PJ_LOG_HAS_NEWLINE;
+ PJ_LOG_HAS_MICRO_SEC | PJ_LOG_HAS_NEWLINE |
+ PJ_LOG_HAS_SPACE;
+#if defined(PJ_WIN32) && PJ_WIN32 != 0
+ cfg->decor |= PJ_LOG_HAS_COLOR;
+#endif
}
PJ_DEF(void) pjsua_logging_config_dup(pj_pool_t *pool,