CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
logging.h
Go to the documentation of this file.
1 
5 #ifndef CVMFS_UTIL_LOGGING_H_
6 #define CVMFS_UTIL_LOGGING_H_
7 
8 #include <string>
9 
10 #include "util/export.h"
11 // Shared declarations of debug and non-debug logging
12 #include "util/logging_internal.h"
13 
14 #ifdef CVMFS_NAMESPACE_GUARD
15 namespace CVMFS_NAMESPACE_GUARD {
16 #endif
17 
19 void vLogCvmfs(const LogSource source, const int mask,
20  const char *format, va_list variadic_list);
21 __attribute__((format(printf, 3, 4)))
23 void LogCvmfs(const LogSource source, const int mask, const char *format, ...);
24 // Ensure that pure debug messages are not compiled except in DEBUGMSG mode
25 #ifndef DEBUGMSG
26 #define LogCvmfs(source, mask, ...) \
27  (((mask) == static_cast<int>(kLogDebug)) ? \
28  ((void)0) : LogCvmfs(source, mask, __VA_ARGS__)); // NOLINT
29 #endif
30 
31 #ifdef CVMFS_NAMESPACE_GUARD
32 } // namespace CVMFS_NAMESPACE_GUARD
33 #endif
34 
35 #endif // CVMFS_UTIL_LOGGING_H_
#define LogCvmfs(source, mask,...)
Definition: logging.h:26
CVMFS_EXPORT void vLogCvmfs(const LogSource source, const int mask, const char *format, va_list variadic_list)
Definition: logging.cc:423
#define CVMFS_EXPORT
Definition: export.h:11
struct cvmcache_object_info __attribute__
Definition: atomic.h:24
LogSource
const int const char * format
Definition: logging.h:23
const int mask
Definition: logging.h:23