fehQlibs 27
Qlibs
Loading...
Searching...
No Matches
logmsg.h File Reference
#include <errno.h>
#include <stdlib.h>
#include "error.h"
Include dependency graph for logmsg.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define err_sys(w, e)
 
#define err_sys_plus(w, e, m)
 
#define err_tmp(w, e, m)
 
#define err_tmp_plus(w, e, m)
 
#define err_int(w, e, c)
 
#define err_int_plus(w, e, c, m)
 
#define log_who(w, m)
 
#define log_anon(m)
 
#define log_cat(n)
 
#define B(...)
 

Functions

void logmsg (const char *who, int ecode, unsigned int class, const char *msg)
 
char * build_log_msg (const char *[])
 

Macro Definition Documentation

◆ B

#define B ( ...)
Value:
build_log_msg((const char *[]){__VA_ARGS__,NULL})
char * build_log_msg(const char *[])
Definition logmsg.c:19

Definition at line 29 of file logmsg.h.

◆ err_int

#define err_int ( w,
e,
c )
Value:
logmsg(w,e,c,"")
void logmsg(const char *who, int ecode, unsigned int class, const char *msg)
Definition logmsg.c:30

Definition at line 19 of file logmsg.h.

◆ err_int_plus

#define err_int_plus ( w,
e,
c,
m )
Value:
logmsg(w,e,c,m)

Definition at line 20 of file logmsg.h.

◆ err_sys

#define err_sys ( w,
e )
Value:
logmsg(w,e,FATAL,"")
#define FATAL
Definition error.h:58

Definition at line 13 of file logmsg.h.

◆ err_sys_plus

#define err_sys_plus ( w,
e,
m )
Value:
logmsg(w,e,FATAL,m)

Definition at line 14 of file logmsg.h.

◆ err_tmp

#define err_tmp ( w,
e,
m )
Value:
logmsg(w,e,WARN,m)
#define WARN
Definition error.h:52

Definition at line 16 of file logmsg.h.

◆ err_tmp_plus

#define err_tmp_plus ( w,
e,
m )
Value:
logmsg(w,e,WARN,m)

Definition at line 17 of file logmsg.h.

◆ log_anon

#define log_anon ( m)
Value:
logmsg("",0,LOG,m)
#define LOG
Definition error.h:48

Definition at line 24 of file logmsg.h.

◆ log_cat

#define log_cat ( n)
Value:
logmsg("",0,CAT,m)
#define CAT
Definition error.h:47

Definition at line 25 of file logmsg.h.

◆ log_who

#define log_who ( w,
m )
Value:
logmsg(w,0,LOG,m)

Definition at line 23 of file logmsg.h.

Function Documentation

◆ build_log_msg()

char * build_log_msg ( const char * x[])
extern

Definition at line 19 of file logmsg.c.

Here is the call graph for this function:

◆ logmsg()

void logmsg ( const char * who,
int ecode,
unsigned int class,
const char * msg )
extern

Definition at line 30 of file logmsg.c.

Here is the call graph for this function: