2014-12-05 22:14:40 +01:00
|
|
|
/*
|
|
|
|
* log.h: SAT>IP plugin for the Video Disk Recorder
|
|
|
|
*
|
|
|
|
* See the README file for copyright information and how to reach the author.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __SATIP_LOG_H
|
|
|
|
#define __SATIP_LOG_H
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
2014-12-08 20:23:23 +01:00
|
|
|
#define error(x...) esyslog("SATIP-ERROR: " x)
|
|
|
|
#define info(x...) isyslog("SATIP: " x)
|
2014-12-14 16:45:55 +01:00
|
|
|
// 0x0001: Generic call stack
|
2014-12-08 20:23:23 +01:00
|
|
|
#define debug1(x...) void( SatipConfig.IsLoggingMode(cSatipConfig::eLoggingModeDebug1) ? dsyslog("SATIP1: " x) : void() )
|
2014-12-14 16:45:55 +01:00
|
|
|
// 0x0002: CURL data flow
|
2014-12-08 20:23:23 +01:00
|
|
|
#define debug2(x...) void( SatipConfig.IsLoggingMode(cSatipConfig::eLoggingModeDebug2) ? dsyslog("SATIP2: " x) : void() )
|
2014-12-14 16:45:55 +01:00
|
|
|
// 0x0004: Data parsing
|
2014-12-08 20:23:23 +01:00
|
|
|
#define debug3(x...) void( SatipConfig.IsLoggingMode(cSatipConfig::eLoggingModeDebug3) ? dsyslog("SATIP3: " x) : void() )
|
2014-12-14 16:45:55 +01:00
|
|
|
// 0x0008: Tuner state machine
|
2014-12-08 20:23:23 +01:00
|
|
|
#define debug4(x...) void( SatipConfig.IsLoggingMode(cSatipConfig::eLoggingModeDebug4) ? dsyslog("SATIP4: " x) : void() )
|
2014-12-14 16:45:55 +01:00
|
|
|
// 0x0010: RTSP responses
|
2014-12-08 20:23:23 +01:00
|
|
|
#define debug5(x...) void( SatipConfig.IsLoggingMode(cSatipConfig::eLoggingModeDebug5) ? dsyslog("SATIP5: " x) : void() )
|
2014-12-14 16:45:55 +01:00
|
|
|
// 0x0020: RTP throughput performance
|
2014-12-08 20:23:23 +01:00
|
|
|
#define debug6(x...) void( SatipConfig.IsLoggingMode(cSatipConfig::eLoggingModeDebug6) ? dsyslog("SATIP6: " x) : void() )
|
2014-12-14 16:45:55 +01:00
|
|
|
// 0x0040: RTP packet internals
|
2014-12-08 20:23:23 +01:00
|
|
|
#define debug7(x...) void( SatipConfig.IsLoggingMode(cSatipConfig::eLoggingModeDebug7) ? dsyslog("SATIP7: " x) : void() )
|
2014-12-14 16:45:55 +01:00
|
|
|
// 0x0080: Section filtering
|
2014-12-08 20:23:23 +01:00
|
|
|
#define debug8(x...) void( SatipConfig.IsLoggingMode(cSatipConfig::eLoggingModeDebug8) ? dsyslog("SATIP8: " x) : void() )
|
2014-12-14 16:45:55 +01:00
|
|
|
// 0x0100: Channel switching
|
2014-12-08 20:23:23 +01:00
|
|
|
#define debug9(x...) void( SatipConfig.IsLoggingMode(cSatipConfig::eLoggingModeDebug9) ? dsyslog("SATIP9: " x) : void() )
|
2014-12-14 18:22:52 +01:00
|
|
|
// 0x0200: RTCP packets
|
2014-12-08 20:23:23 +01:00
|
|
|
#define debug10(x...) void( SatipConfig.IsLoggingMode(cSatipConfig::eLoggingModeDebug10) ? dsyslog("SATIP10: " x) : void() )
|
2014-12-14 16:45:55 +01:00
|
|
|
// 0x0400: TBD
|
2014-12-08 20:23:23 +01:00
|
|
|
#define debug11(x...) void( SatipConfig.IsLoggingMode(cSatipConfig::eLoggingModeDebug11) ? dsyslog("SATIP11: " x) : void() )
|
2014-12-14 16:45:55 +01:00
|
|
|
// 0x0800: TBD
|
2014-12-08 20:23:23 +01:00
|
|
|
#define debug12(x...) void( SatipConfig.IsLoggingMode(cSatipConfig::eLoggingModeDebug12) ? dsyslog("SATIP12: " x) : void() )
|
2014-12-14 16:45:55 +01:00
|
|
|
// 0x1000: TBD
|
2014-12-08 20:23:23 +01:00
|
|
|
#define debug13(x...) void( SatipConfig.IsLoggingMode(cSatipConfig::eLoggingModeDebug13) ? dsyslog("SATIP13: " x) : void() )
|
2014-12-14 16:45:55 +01:00
|
|
|
// 0x2000: TBD
|
2014-12-08 20:23:23 +01:00
|
|
|
#define debug14(x...) void( SatipConfig.IsLoggingMode(cSatipConfig::eLoggingModeDebug14) ? dsyslog("SATIP14: " x) : void() )
|
2014-12-14 16:45:55 +01:00
|
|
|
// 0x4000: TBD
|
2014-12-08 20:23:23 +01:00
|
|
|
#define debug15(x...) void( SatipConfig.IsLoggingMode(cSatipConfig::eLoggingModeDebug15) ? dsyslog("SATIP15: " x) : void() )
|
2014-12-14 16:45:55 +01:00
|
|
|
// 0x8000; Extra call stack
|
2014-12-08 20:23:23 +01:00
|
|
|
#define debug16(x...) void( SatipConfig.IsLoggingMode(cSatipConfig::eLoggingModeDebug16) ? dsyslog("SATIP16: " x) : void() )
|
2014-12-05 22:14:40 +01:00
|
|
|
|
|
|
|
#endif // __SATIP_LOG_H
|
|
|
|
|