File: log.h

package info (click to toggle)
arpalert 2.0.11-7.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 2,480 kB
  • ctags: 562
  • sloc: ansic: 4,372; sh: 500; makefile: 151; perl: 35
file content (31 lines) | stat: -rw-r--r-- 595 bytes parent folder | download | duplicates (5)
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
29
30
31
/*
 * Copyright (c) 2005-2010 Thierry FOURNIER
 * $Id: log.h 690 2008-03-31 18:36:43Z  $
 *
 */

#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);

// rotate log file
void logfile_reload(void);

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

#endif