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