File: log.h

package info (click to toggle)
arpalert 2.0.3-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,332 kB
  • ctags: 415
  • sloc: ansic: 4,185; sh: 447; makefile: 153; perl: 28
file content (28 lines) | stat: -rw-r--r-- 554 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * Copyright (c) 2005-2010 Thierry FOURNIER
 * $Id: log.h 60 2006-03-02 19:51:25Z thierry $
 *
 */

#ifndef __LOG_H__
#define __LOG_H__

// log priority.
#define LOG_EMERG       0
#define LOG_ALERT       1
#define LOG_CRIT        2
#define LOG_ERR         3
#define LOG_WARNING     4
#define LOG_NOTICE      5
#define LOG_INFO        6
#define LOG_DEBUG       7

// log initilization:
// open log file before chrooting
// send init and open syslog before chrooting
void initlog(void);

// send log message
void logmsg(int, const char *, ...);

#endif