diff options
author | Lauri Aarnio <Lauri.Aarnio@iki.fi> | 2008-05-07 04:48:01 +0300 |
---|---|---|
committer | Lauri Leukkunen <lle@rahina.org> | 2008-06-17 10:02:57 +0300 |
commit | 57144d5cb631dcd890b3de526d95fdec38b732b5 (patch) | |
tree | b8d0a1210552b1c2e2b2749a763d97d5e852586a /luaif | |
parent | 2a4e5c9712229b86b4a5f9c10837f7a0d786ce92 (diff) |
added "noise2" logging level
Diffstat (limited to 'luaif')
-rw-r--r-- | luaif/luaif.c | 4 | ||||
-rw-r--r-- | luaif/sb_log.c | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/luaif/luaif.c b/luaif/luaif.c index 2319c92..14a7ff2 100644 --- a/luaif/luaif.c +++ b/luaif/luaif.c @@ -332,6 +332,10 @@ static int lua_sb_log(lua_State *luastate) SB_LOG(SB_LOGLEVEL_WARNING, "WARNING: %s", logmsg); else if(!strcmp(loglevel, "error")) SB_LOG(SB_LOGLEVEL_ERROR, "ERROR: %s", logmsg); + else if(!strcmp(loglevel, "noise")) + SB_LOG(SB_LOGLEVEL_NOISE, ">>>>: %s", logmsg); + else if(!strcmp(loglevel, "noise2")) + SB_LOG(SB_LOGLEVEL_NOISE2, ">>>>>>: %s", logmsg); else /* default to level "error" */ SB_LOG(SB_LOGLEVEL_ERROR, "%s", logmsg); diff --git a/luaif/sb_log.c b/luaif/sb_log.c index bb57ad8..47e902a 100644 --- a/luaif/sb_log.c +++ b/luaif/sb_log.c @@ -123,6 +123,9 @@ void sblog_init(void) } else if (!strcmp(level_str,"noise")) { sb_loglevel__ = SB_LOGLEVEL_NOISE; sb_log_state.sbl_print_file_and_line = 1; + } else if (!strcmp(level_str,"noise2")) { + sb_loglevel__ = SB_LOGLEVEL_NOISE2; + sb_log_state.sbl_print_file_and_line = 1; } else { sb_loglevel__ = SB_LOGLEVEL_INFO; } |