1 /*
2 *      Copyright (C) 2017 peak3d
3 *      http://www.peak3d.de
4 *
5 *  This Program is free software; you can redistribute it and/or modify
6 *  it under the terms of the GNU General Public License as published by
7 *  the Free Software Foundation; either version 2, or (at your option)
8 *  any later version.
9 *
10 *  This Program is distributed in the hope that it will be useful,
11 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 *  GNU General Public License for more details.
14 *
15 *  <http://www.gnu.org/licenses/>.
16 *
17 */
18 
19 typedef enum LogLevel
20 {
21   LOGLEVEL_DEBUG = 0,
22   LOGLEVEL_INFO = 1,
23   LOGLEVEL_NOTICE = 2,
24   LOGLEVEL_WARNING = 3,
25   LOGLEVEL_ERROR = 4,
26   LOGLEVEL_SEVERE = 5,
27   LOGLEVEL_FATAL = 6
28 } LogLevel;
29 
30 
31 extern void Log(const LogLevel loglevel, const char* format, ...);