CernVM-FS  2.13.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, const char *format,
20  va_list variadic_list);
21 __attribute__((format(printf, 3, 4))) CVMFS_EXPORT void LogCvmfs(
22  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) \
28  : 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:25
CVMFS_EXPORT const LogSource const int mask
Definition: exception.h:33
CVMFS_EXPORT const LogSource source
Definition: exception.h:33
CVMFS_EXPORT void vLogCvmfs(const LogSource source, const int mask, const char *format, va_list variadic_list)
Definition: logging.cc:422
#define CVMFS_EXPORT
Definition: export.h:11
struct cvmcache_object_info __attribute__
Definition: atomic.h:24
LogSource
CVMFS_EXPORT const LogSource const int const char * format
Definition: exception.h:33