This repository has been archived on 2025-02-12. You can view files and clone it, but cannot push or open issues or pull requests.
NeoStats-NeoIRCd/include/s_log.h

50 lines
1.6 KiB
C
Raw Permalink Normal View History

2002-08-13 14:34:25 +00:00
/*
* NeoIRCd: NeoStats Group. Based on Hybird7
2002-08-13 14:34:25 +00:00
* s_log.h: A header for the logger functions.
*
* Copyright (C) 2002 by the past and present ircd coders, and others.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
* $Id: s_log.h,v 1.4 2002/09/19 05:41:10 fishwaldo Exp $
2002-08-13 14:34:25 +00:00
*/
#ifndef INCLUDED_s_log_h
#define INCLUDED_s_log_h
struct Client;
#define L_CRIT 0
#define L_ERROR 1
#define L_WARN 2
#define L_NOTICE 3
#define L_TRACE 4
#define L_INFO 5
#define L_DEBUG 6
extern void init_log(const char* filename);
extern void reopen_log(const char* filename);
extern void set_log_level(int level);
extern int get_log_level(void);
extern void ilog(int priority, const char* fmt, ...);
extern const char *get_log_level_as_string(int level);
extern void log_user_exit(struct Client *);
extern void log_oper(struct Client *, char *name);
extern void log_failed_oper(struct Client *, char *name);
2002-08-13 14:34:25 +00:00
#endif /* INCLUDED_s_log_h */