reSIProcate/rutil  9694
Namespaces | Defines | Typedefs | Functions
Logger.hxx File Reference
#include "rutil/Log.hxx"
#include "rutil/Lock.hxx"
#include "rutil/DataStream.hxx"
#include "rutil/Data.hxx"
#include "rutil/Subsystem.hxx"
Include dependency graph for Logger.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  resip
 

dcm! -- add UnusedChecking(_enum) below;


Defines

#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)

Define Documentation

#define CerrLog (   args_)
Value:
resip::Log::tags(resip::Log::StdErr, RESIPROCATE_SUBSYSTEM,           \
                   __FILE__, __LINE__, resipCerr) << ' ' << '|' << ' '  \
          args_ << std::endl;

Definition at line 120 of file Logger.hxx.

#define CritLog (   args_)    GenericLog(RESIPROCATE_SUBSYSTEM, resip::Log::Crit, args_)
#define DebugLog (   args_)    GenericLog(RESIPROCATE_SUBSYSTEM, resip::Log::Debug, args_)
#define DELIM

Definition at line 115 of file Logger.hxx.

#define ErrLog (   args_)    GenericLog(RESIPROCATE_SUBSYSTEM, resip::Log::Err, args_)
#define GenericLog (   system_,
  level_,
  args_ 
)
Value:
do                                                                   \
   {                                                                    \
      if (genericLogCheckLevel(level_, system_))                        \
      {                                                                 \
         resip::Log::Guard _resip_log_guard(level_, system_, __FILE__, __LINE__); \
         _resip_log_guard.asStream()  args_;                            \
      }                                                                 \
   } while (false)

Definition at line 150 of file Logger.hxx.

#define InfoLog (   args_)    GenericLog(RESIPROCATE_SUBSYSTEM, resip::Log::Info, args_)
#define StackLog (   args_)    GenericLog(RESIPROCATE_SUBSYSTEM, resip::Log::Stack, args_)
#define WarningLog (   args_)    GenericLog(RESIPROCATE_SUBSYSTEM, resip::Log::Warning, args_)

Function Documentation

static bool genericLogCheckLevel ( resip::Log::Level  level,
const resip::Subsystem sub 
) [inline, static]

Definition at line 144 of file Logger.hxx.

References resip::Log::isLogging().

{
   return resip::Log::isLogging(level, sub);
}

Here is the call graph for this function: