CernVM-FS  2.11.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);
22 void LogCvmfs(const LogSource source, const int mask, const char *format, ...);
23 // Ensure that pure debug messages are not compiled except in DEBUGMSG mode
24 #ifndef DEBUGMSG
25 #define LogCvmfs(source, mask, ...) \
26  (((mask) == static_cast<int>(kLogDebug)) ? \
27  ((void)0) : LogCvmfs(source, mask, __VA_ARGS__)); // NOLINT
28 #endif
29 
30 #ifdef CVMFS_NAMESPACE_GUARD
31 } // namespace CVMFS_NAMESPACE_GUARD
32 #endif
33 
34 #endif // CVMFS_UTIL_LOGGING_H_
#define LogCvmfs(source, mask,...)
Definition: logging.h:25
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
LogSource