log.h
TinyMAZE/src/hdrs/log.h · 1.2 KB
From the archive TinyMAZEv2.5a.tar.gz
Download the archive « Back to the archive contents
#ifndef _LOG_H
#define _LOG_H
#include <stdio.h>
struct log
{
FILE *fptr;
int counter;
char *filename;
char *com_channel;
};
extern struct log command_log, important_log, sensitive_log, error_log,
io_log, gripe_log, root_log, cmds_log, suspect_log, register_log,
guest_log, huh_log, denied_log, force_log, misc_log, complaint_log;
#define log_command(str) muse_log(&command_log, (str))
#define log_important(str) muse_log(&important_log, (str))
#define log_sensitive(str) muse_log(&sensitive_log, (str))
#define log_error(str) muse_log(&error_log, (str))
#define log_io(str) muse_log(&io_log, (str))
#define log_gripe(str) muse_log(&gripe_log, (str))
#define log_is_root(str) muse_log(&root_log, (str))
#define log_cmds(str) muse_log(&cmds_log, (str))
#define log_suspect(str) muse_log(&suspect_log, (str))
#define log_register(str) muse_log(®ister_log, (str))
#define log_guest(str) muse_log(&guest_log, (str))
#define log_huh(str) muse_log(&huh_log, (str))
#define log_denied(str) muse_log(&denied_log, (str))
#define log_force(str) muse_log(&force_log, (str))
#define log_misc(str) muse_log(&misc_log, (str))
#define log_complaint(str) muse_log(&complaint_log, (str))
#endif /* _LOG_H */