libfuse

fuse_log.h
Go to the documentation of this file.
1/*
2 FUSE: Filesystem in Userspace
3 Copyright (C) 2019 Red Hat, Inc.
4
5 This program can be distributed under the terms of the GNU LGPLv2.
6 See the file COPYING.LIB.
7*/
8
9#ifndef FUSE_LOG_H_
10#define FUSE_LOG_H_
11
17#include <stdarg.h>
18
19#ifdef __cplusplus
20 extern "C" {
21#endif
22
28 enum fuse_log_level {
29 FUSE_LOG_EMERG,
30 FUSE_LOG_ALERT,
31 FUSE_LOG_CRIT,
32 FUSE_LOG_ERR,
33 FUSE_LOG_WARNING,
34 FUSE_LOG_NOTICE,
35 FUSE_LOG_INFO,
36 FUSE_LOG_DEBUG
37};
38
52 typedef void (*fuse_log_func_t)(enum fuse_log_level level,
53 const char *fmt, va_list ap);
54
68 void fuse_set_log_func(fuse_log_func_t func);
69
76 void fuse_log(enum fuse_log_level level, const char *fmt, ...);
77
83 void fuse_log_enable_syslog(const char *ident, int option, int facility);
84
88 void fuse_log_close_syslog(void);
89
90#ifdef __cplusplus
91}
92#endif
93
94#endif /* FUSE_LOG_H_ */
fuse_log_close_syslog
void fuse_log_close_syslog(void)
Definition fuse_log.c:93
fuse_log
void fuse_log(enum fuse_log_level level, const char *fmt,...)
Definition fuse_log.c:77
fuse_log_func_t
void(* fuse_log_func_t)(enum fuse_log_level level, const char *fmt, va_list ap)
Definition fuse_log.h:52
fuse_log_enable_syslog
void fuse_log_enable_syslog(const char *ident, int option, int facility)
Definition fuse_log.c:86
fuse_log_level
fuse_log_level
Definition fuse_log.h:28
fuse_set_log_func
void fuse_set_log_func(fuse_log_func_t func)
Definition fuse_log.c:69