reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
Logger.hxx File Reference
#include "rutil/Log.hxx"
#include "rutil/Lock.hxx"
#include "rutil/DataStream.hxx"
#include "rutil/Data.hxx"
#include "rutil/Subsystem.hxx"

Go to the source code of this file.

Namespaces

namespace  resip
 dcm! – add UnusedChecking(_enum) below;
 

Macros

#define DELIM
 
#define CerrLog(args_)
 
#define StackLog(args_)   GenericLog(RESIPROCATE_SUBSYSTEM, resip::Log::Stack, args_)
 
#define DebugLog(args_)   GenericLog(RESIPROCATE_SUBSYSTEM, resip::Log::Debug, args_)
 
#define InfoLog(args_)   GenericLog(RESIPROCATE_SUBSYSTEM, resip::Log::Info, args_)
 
#define WarningLog(args_)   GenericLog(RESIPROCATE_SUBSYSTEM, resip::Log::Warning, args_)
 
#define ErrLog(args_)   GenericLog(RESIPROCATE_SUBSYSTEM, resip::Log::Err, args_)
 
#define CritLog(args_)   GenericLog(RESIPROCATE_SUBSYSTEM, resip::Log::Crit, args_)
 
#define GenericLog(system_, level_, args_)
 

Typedefs

typedef Log resip::GenericLogImpl
 DEPRECATED! Left for backward compatibility.
 

Functions

static bool genericLogCheckLevel (resip::Log::Level level, const resip::Subsystem &sub)
 

Macro Definition Documentation

◆ CerrLog

#define CerrLog (   args_)
Value:
args_ << std::endl;
#define RESIPROCATE_SUBSYSTEM
static EncodeStream & tags(Log::Level level, const Subsystem &subsystem, const char *file, int line, const char *methodName, EncodeStream &strm, MessageStructure messageStructure)
output the loglevel, hostname, appname, pid, tid, subsystem
Definition Log.cxx:620
@ StdErr
Definition Log.hxx:87
@ Unstructured
Definition Log.hxx:93
#define resipCerr
void list()
Definition userAdmin.cxx:66

Definition at line 120 of file Logger.hxx.

◆ CritLog

Definition at line 140 of file Logger.hxx.

◆ DebugLog

Definition at line 128 of file Logger.hxx.

◆ DELIM

#define DELIM

Definition at line 115 of file Logger.hxx.

◆ ErrLog

Definition at line 137 of file Logger.hxx.

◆ GenericLog

#define GenericLog (   system_,
  level_,
  args_ 
)
Value:
do \
{ \
{ \
_resip_log_guard.asStream() args_; \
} \
} while (false)
static bool genericLogCheckLevel(resip::Log::Level level, const resip::Subsystem &sub)
Definition Logger.hxx:144
Implementation for logging macros.
Definition Log.hxx:106

Definition at line 150 of file Logger.hxx.

◆ InfoLog

Definition at line 131 of file Logger.hxx.

◆ StackLog

Definition at line 125 of file Logger.hxx.

◆ WarningLog

Definition at line 134 of file Logger.hxx.

Function Documentation

◆ genericLogCheckLevel()

static bool genericLogCheckLevel ( resip::Log::Level  level,
const resip::Subsystem &  sub 
)
inlinestatic

Definition at line 144 of file Logger.hxx.