1 /* This file is part of GNU Pies. 2 Copyright (C) 2007-2020 Sergey Poznyakoff 3 4 GNU Pies is free software; you can redistribute it and/or modify 5 it under the terms of the GNU General Public License as published by 6 the Free Software Foundation; either version 3, or (at your option) 7 any later version. 8 9 GNU Pies is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 GNU General Public License for more details. 13 14 You should have received a copy of the GNU General Public License 15 along with GNU Pies. If not, see <http://www.gnu.org/licenses/>. */ 16 17 #define PIES_LOG_BUF_SIZE 1024 18 #define PIES_LOG_DEV "/dev/log" 19 #define PIES_LOG_MAX_QUEUE 64 20 21 int pies_syslog_set_dev (char const *dev); 22 int pies_syslog_open (void); 23 void pies_syslog_close (void); 24 void pies_syslog (int pri, char const *fmt, ...); 25 void pies_vsyslog (int pri, char const *fmt, va_list ap); 26 void pies_syslog_flush (void); 27 void pies_syslog_message (int prio, char const *text, char const *tag, pid_t pid); 28 29 extern char *pies_fallback_file; 30 extern char *pies_log_tag; 31 extern int pies_log_facility; 32 extern size_t pies_log_max_queue; 33 34 35 36 37 38