1 /*******************************************************************************/
2 /* Permission is hereby granted, free of charge, to any person or organization */
3 /* obtaining a copy of the software and accompanying documentation covered by  */
4 /* this license (the "Software") to use, reproduce, display, distribute,       */
5 /* execute, and transmit the Software, and to prepare derivative works of the  */
6 /* Software, and to permit third-parties to whom the Software is furnished to  */
7 /* do so, all subject to the following:                                        */
8 /*                                                                             */
9 /* The copyright notices in the Software and this entire statement, including  */
10 /* the above license grant, this restriction and the following disclaimer,     */
11 /* must be included in all copies of the Software, in whole or in part, and    */
12 /* all derivative works of the Software, unless such copies or derivative      */
13 /* works are solely in the form of machine-executable object code generated by */
14 /* a source language processor.                                                */
15 /*                                                                             */
16 /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR  */
17 /* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,    */
18 /* FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT   */
19 /* SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE   */
20 /* FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, */
21 /* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER */
22 /* DEALINGS IN THE SOFTWARE.                                                   */
23 /*******************************************************************************/
24 
25 #if !defined(_LFP_SYSLOG_H_)
26 # define _LFP_SYSLOG_H_
27 
28 #include <lfp/aux.h>
29 
30 LFP_BEGIN_DECLS
31 
32 #include <syslog.h>
33 
34 #include <stdarg.h>
35 
36 void lfp_openlog(const char *ident, int options, int facility);
37 
38 void lfp_syslog(int priority, const char *msg, ...);
39 
40 void lfp_vsyslog(int priority, const char *msg, va_list args);
41 
42 void lfp_closelog(void);
43 
44 int lfp_setlogmask(int maskpri);
45 
46 int lfp_log_mask(int priority);
47 
48 int lfp_log_upto(int priority);
49 
50 LFP_END_DECLS
51 
52 #endif /* _LFP_SYSLOG_H_ */
53