svcproc.h File Reference

#include <ptlib/pprocess.h>
#include "unix/ptlib/svcproc.h"

Go to the source code of this file.

Classes

class  PSystemLog
class  PServiceProcess

Defines

#define PSYSTEMLOG(level, variables)

Define Documentation

#define PSYSTEMLOG ( level,
variables   ) 
Value:
if (PServiceProcess::Current().GetLogLevel() >= PSystemLog::level) { \
    PSystemLog P_systemlog(PSystemLog::level); \
    P_systemlog << variables; \
  } else (void)0

Log a message to the system log. The current log level is checked and if allowed, the second argument is evaluated as a stream output sequence which is them output to the system log.

Generated on Fri May 28 07:32:30 2010 for PTLib by  doxygen 1.6.3