Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] What about a trace log level Klaus?
Hi,
it would be nice to have a trace log level in vdr for the weather plugin, because I don't like the crowded Syslog.
The trace level should be more detailed than the debug level (See patch against vdr-1.2.2 below).
Cheers,
Steffen
--- vdr.c.orig 2003-08-15 23:14:14.000000000 +0200
+++ vdr.c 2003-08-15 23:09:07.000000000 +0200
@@ -157,7 +157,7 @@
*p = 0;
if (isnumber(optarg)) {
int l = atoi(optarg);
- if (0 <= l && l <= 3) {
+ if (0 <= l && l <= 4) {
SysLogLevel = l;
if (!p)
break;
--- tools.h.orig 2003-08-15 23:14:28.000000000 +0200
+++ tools.h 2003-08-15 23:09:57.000000000 +0200
@@ -27,6 +27,7 @@
#define esyslog(a...) void( (SysLogLevel > 0) ? syslog(LOG_ERR, a) : void() )
#define isyslog(a...) void( (SysLogLevel > 1) ? syslog(LOG_INFO, a) : void() )
#define dsyslog(a...) void( (SysLogLevel > 2) ? syslog(LOG_DEBUG, a) : void() )
+#define tsyslog(a...) void( (SysLogLevel > 3) ? syslog(LOG_DEBUG, a) : void() )
#define LOG_ERROR esyslog("ERROR (%s,%d): %m", __FILE__, __LINE__)
#define LOG_ERROR_STR(s) esyslog("ERROR: %s: %m", s)
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index