35#define RPMLOG_PRIMASK  0x07     
   37#define RPMLOG_PRI(p)   ((p) & RPMLOG_PRIMASK) 
   38#define RPMLOG_MAKEPRI(fac, pri)    ((((unsigned)(fac)) << 3) | (pri)) 
   39#define RPMLOG_NPRIS    (RPMLOG_DEBUG + 1) 
   44#define RPMLOG_MASK(pri) (1 << ((unsigned)(pri)))    
   45#define RPMLOG_UPTO(pri) ((1 << (((unsigned)(pri))+1)) - 1)  
   53#define RPMLOG_PID  0x01     
   54#define RPMLOG_CONS 0x02     
   55#define RPMLOG_ODELAY   0x04     
   56#define RPMLOG_NDELAY   0x08     
   57#define RPMLOG_NOWAIT   0x10     
   58#define RPMLOG_PERROR   0x20     
   63#define RPMLOG_DEFAULT  0x01     
   64#define RPMLOG_EXIT 0x02     
   68typedef struct rpmlogRec_s * rpmlogRec;
 
   84typedef void * rpmlogCallbackData;
 
  132void rpmlogOpen (
const char * ident, 
int option, 
int facility);
 
  144void rpmlog (
int code, 
const char *fmt, ...) RPM_GNUC_PRINTF(2, 3);
 
  183#define rpmSetVerbosity(_lvl)   \ 
  184    ((void)rpmlogSetMask( RPMLOG_UPTO( RPMLOG_PRI(_lvl)))) 
  185#define rpmIncreaseVerbosity()  \ 
  186    ((void)rpmlogSetMask(((((unsigned)(rpmlogSetMask(0) & 0xff)) << 1) | 1))) 
  187#define rpmDecreaseVerbosity()  \ 
  188    ((void)rpmlogSetMask((((int)(rpmlogSetMask(0) & 0xff)) >> 1))) 
  189#define rpmIsNormal()       \ 
  190    (rpmlogSetMask(0) >= RPMLOG_MASK( RPMLOG_NOTICE )) 
  191#define rpmIsVerbose()      \ 
  192    (rpmlogSetMask(0) >= RPMLOG_MASK( RPMLOG_INFO )) 
  193#define rpmIsDebug()        \ 
  194    (rpmlogSetMask(0) >= RPMLOG_MASK( RPMLOG_DEBUG )) 
int rpmlogSetMask(int mask)
int rpmlogGetNrecsByMask(unsigned mask)
void rpmlogOpen(const char *ident, int option, int facility)
const char * rpmlogRecMessage(rpmlogRec rec)
void rpmlogPrint(FILE *f)
enum rpmlogLvl_e rpmlogLvl
int(* rpmlogCallback)(rpmlogRec rec, rpmlogCallbackData data)
Definition rpmlog.h:94
void rpmlog(int code, const char *fmt,...) RPM_GNUC_PRINTF(2
rpmlogCallback rpmlogSetCallback(rpmlogCallback cb, rpmlogCallbackData data)
rpmlogLvl rpmlogRecPriority(rpmlogRec rec)
rpmlogLvl_e
Definition rpmlog.h:24
FILE * rpmlogSetFile(FILE *fp)
void const char * rpmlogMessage(void)
const char * rpmlogLevelPrefix(rpmlogLvl pri)
void rpmlogPrintByMask(FILE *f, unsigned mask)
@ RPMLOG_DEBUG
Definition rpmlog.h:32
@ RPMLOG_ERR
Definition rpmlog.h:28
@ RPMLOG_WARNING
Definition rpmlog.h:29
@ RPMLOG_NOTICE
Definition rpmlog.h:30
@ RPMLOG_INFO
Definition rpmlog.h:31
@ RPMLOG_CRIT
Definition rpmlog.h:27
@ RPMLOG_EMERG
Definition rpmlog.h:25
@ RPMLOG_ALERT
Definition rpmlog.h:26