ap

Queue manager meant to be used as an audio player
git clone git://jacobedwards.org/ap
Log | Files | Refs | README | LICENSE

log.h (499B)


      1 #include <syslog.h>
      2 
      3 enum loglevel {
      4 	DEBUG = LOG_DEBUG,
      5 	INFO = LOG_INFO,
      6 	WARN = LOG_WARNING,
      7 	ERROR = LOG_ERR,
      8 	FATAL = LOG_CRIT
      9 };
     10 
     11 enum logsubject {
     12 	LogGeneral,
     13 	LogCommand,
     14 	LogConn,
     15 	LogPlayer,
     16 	LogQueue
     17 };
     18 
     19 static char *logsubjects[] = {
     20         [LogCommand] = "command",
     21         [LogConn] = "connection",
     22 	[LogPlayer] = "player",
     23         [LogQueue] = "queue"
     24 };
     25 
     26 int	logstrlevel(char *);
     27 char	*loglevelstr(int);
     28 int	logmask(int);
     29 void	aps_log(struct aps *, int, int, char *, char *, ...);