dlog.h

Go to the documentation of this file.
00001 #ifndef foodaemonloghfoo
00002 #define foodaemonloghfoo
00003 
00004 /*
00005  * This file is part of libdaemon.
00006  *
00007  * libdaemon is free software; you can redistribute it and/or modify it
00008  * under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2 of the License, or
00010  * (at your option) any later version.
00011  *
00012  * libdaemon is distributed in the hope that it will be useful, but
00013  * WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00015  * General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with libdaemon; if not, write to the Free Software Foundation,
00019  * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
00020  */
00021 
00022 #include <syslog.h>
00023 
00031 enum daemon_log_flags {
00032     DAEMON_LOG_SYSLOG = 1,   
00033     DAEMON_LOG_STDERR = 2,   
00034     DAEMON_LOG_STDOUT = 4,   
00035     DAEMON_LOG_AUTO = 8      
00038 };
00039 
00041 extern enum daemon_log_flags daemon_log_use;
00042 
00045 extern char* daemon_log_ident;
00046 
00051 void daemon_log(int prio, const char* t, ...);
00052 
00059 char *daemon_ident_from_argv0(char *argv0);
00060 
00061 #endif

Generated on Sun Jan 6 12:12:17 2008 for libdaemon by  doxygen 1.4.7