|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T l
Length: 1545 (0x609)
Types: TextFile
Names: »ll_log.h«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
└─⟦dc59850a2⟧ »EurOpenD22/pp5.0/pp-5.tar.Z«
└─⟦e5a54fb17⟧
└─⟦this⟧ »pp-5.0/h/ll_log.h«
/* ll_log.h: logging definitions */
/*
* @(#) $Header: /cs/research/pp/hubris/pp-beta/h/RCS/ll_log.h,v 5.0 90/09/20 16:50:32 pp Exp Locker: pp $
*
* $Log: ll_log.h,v $
* Revision 5.0 90/09/20 16:50:32 pp
* rcsforce : 5.0 public release
*
*
*/
#ifndef _H_LOG_
#define _H_LOG_
#include <isode/logger.h>
extern LLog *pp_log_norm,
*pp_log_stat,
*pp_log_oper;
/* can't leave spaces in macro definitions... PP_LOG ( blows up! */
#define PP_LOG(level, args) SLOG (pp_log_norm, level, NULLCP, args)
#define PP_SLOG(level, str, args) \
SLOG (pp_log_norm, level, str, args)
#define PP_OPER(what, args) if (pp_log_oper -> ll_events & (LLOG_FATAL)) { \
(void) ll_log (pp_log_oper, LLOG_FATAL, what, "%s", ll_preset args); \
(void) ll_log (pp_log_norm, LLOG_FATAL, what, "%s", ll_preset args); \
} \
else
#define PP_STAT(args) SLOG (pp_log_stat, LLOG_NOTICE, NULLCP, args)
#define PP_NOTICE(args) SLOG(pp_log_norm, LLOG_NOTICE, NULLCP, args)
/* Tracing of PP PDUS */
#define PDU_READ (1)
#define PDU_WRITE (0)
#if PP_DEBUG > 0
#define PP_PDU(fnx,pe,text,rw) \
if (pp_log_norm -> ll_events & LLOG_PDUS) { \
vpdu (pp_log_norm, fnx, pe, text, rw); \
} \
else
#else
#define PP_PDU(fnx,pe,text,rw)
#endif
/* general PP Tracing */
#if PP_DEBUG > 0
#define PP_TRACE(args) SLOG (pp_log_norm, LLOG_TRACE, NULLCP, args)
#else
#define PP_TRACE(args)
#endif
/* Low level PP Tracing */
#if PP_DEBUG > 1
#define PP_DBG(args) SLOG (pp_log_norm, LLOG_DEBUG, NULLCP, args)
#else
#define PP_DBG(args)
#endif
#endif