mirror of
https://github.com/Motion-Project/motion.git
synced 2026-01-19 20:28:24 -05:00
34 lines
1.0 KiB
C
34 lines
1.0 KiB
C
/*
|
|
* logger.h
|
|
*
|
|
* Include file for logger.c
|
|
*
|
|
* Copyright 2005, William M. Brack
|
|
* Copyright 2008 by Angel Carpintero (ack@telefonica.net)
|
|
* This software is distributed under the GNU Public License Version 2
|
|
* See also the file 'COPYING'.
|
|
*
|
|
*/
|
|
#ifndef _INCLUDE_LOGGER_H_
|
|
#define _INCLUDE_LOGGER_H_
|
|
|
|
#include "motion.h"
|
|
#include <syslog.h>
|
|
|
|
|
|
|
|
/* Debug levels */
|
|
#define CAMERA_ALERT 1 /* alerts only */
|
|
#define CAMERA_CRITICAL 2 /* critical only */
|
|
#define CAMERA_WARNINGS 3 /* warnings only */
|
|
#define TRACK_DEBUG 4 /* track debug */
|
|
#define CAMERA_INFO 5 /* info debug */
|
|
#define CAMERA_VIDEO 6 /* debug video not verbose */
|
|
#define CAMERA_DEBUG 7 /* debug but not verbose */
|
|
#define CAMERA_VERBOSE 8 /* verbose level */
|
|
#define CAMERA_ALL 9 /* everything */
|
|
|
|
void motion_log(int, int, const char *, ...);
|
|
|
|
#endif
|