lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
SysLog.hh File Reference

Declares psalg::SysLog, static wrappers around syslog(3) that tag messages by level. More...

#include <stdio.h>
#include <stdarg.h>
#include <syslog.h>
#include <stdlib.h>

Classes

class  psalg::SysLog
 Static wrappers around syslog(3): init() opens the log, and each message function prefixes the format with a level letter (D, I, W, E or C) in angle brackets. More...
 

Namespaces

namespace  psalg
 Usage.
 

Macros

#define GET_PROGRAM_NAME()   getprogname()
 Program name used in the syslog ident: program_invocation_short_name with glibc, getprogname() otherwise (this line is the non-glibc branch).
 
#define SYSLOG_IDENT_MAX   32
 Size (32) of the static ident buffer used by SysLog::init().
 
#define SYSLOG_FORMAT_MAX   4096
 Size (4096) of the format buffer used by the SysLog message functions.
 

Detailed Description

Declares psalg::SysLog, static wrappers around syslog(3) that tag messages by level.

Macro Definition Documentation

◆ GET_PROGRAM_NAME

#define GET_PROGRAM_NAME ( )    getprogname()

Program name used in the syslog ident: program_invocation_short_name with glibc, getprogname() otherwise (this line is the non-glibc branch).

◆ SYSLOG_FORMAT_MAX

#define SYSLOG_FORMAT_MAX   4096

Size (4096) of the format buffer used by the SysLog message functions.

◆ SYSLOG_IDENT_MAX

#define SYSLOG_IDENT_MAX   32

Size (32) of the static ident buffer used by SysLog::init().