summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLauri Aarnio <lauri.aarnio@iki.fi>2008-01-03 02:58:17 +0200
committerLauri Leukkunen <lle@rahina.org>2008-01-03 18:16:32 +0200
commit9be5627dfe209505744f081bd3aad7fcfd4012f9 (patch)
tree8eac3a760301e31f34d0274949888aaa02966c0a /include
parenta7ff25c508d37a760c7248050929812887148be1 (diff)
Added log post-processing tool and improved logging messages.
- added sb2logz, which extracts information from logs and produces summaries - general: log format changed (each line now contains log level, too) - *.c: log messages which are needed by sb2logz are now at INFO level - interface.master & libsb2.c: Added gates to _exit() and _Exit(), so that exit status can be logged - sb_exec.c: bugfix: sb_execve_mod() returns nonzero if error, not zero - sb2: location of log files changed: logs now go to ~/sb2_logs/, and initial environment is printed to the log file
Diffstat (limited to 'include')
-rw-r--r--include/sb2.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/sb2.h b/include/sb2.h
index 6fdf324..6f94033 100644
--- a/include/sb2.h
+++ b/include/sb2.h
@@ -56,9 +56,9 @@ time_t get_sb2_timestamp(void);
extern void sblog_init(void);
extern void sblog_vprintf_line_to_logfile(const char *file, int line,
- const char *format, va_list ap);
+ int level, const char *format, va_list ap);
extern void sblog_printf_line_to_logfile(const char *file, int line,
- const char *format,...);
+ int level, const char *format,...);
extern int sb_loglevel__; /* do not access directly */
@@ -66,7 +66,7 @@ extern int sb_loglevel__; /* do not access directly */
do { \
if ((level) <= sb_loglevel__) { \
sblog_printf_line_to_logfile( \
- __FILE__, __LINE__, __VA_ARGS__); \
+ __FILE__, __LINE__, level, __VA_ARGS__); \
} \
} while (0)