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_LOGGING_H_
6 #define CVMFS_LOGGING_H_
7 
8 #include <string>
9 
10 // Shared declarations of debug and non-debug logging
11 #include "logging_internal.h"
12 
13 #ifdef CVMFS_NAMESPACE_GUARD
14 namespace CVMFS_NAMESPACE_GUARD {
15 #endif
16 
17 void LogCvmfs(const LogSource source, const int mask, const char *format, ...);
18 // Ensure that pure debug messages are not compiled except in DEBUGMSG mode
19 #ifndef DEBUGMSG
20 #define LogCvmfs(source, mask, ...) \
21  (((mask) == static_cast<int>(kLogDebug)) ? \
22  ((void)0) : LogCvmfs(source, mask, __VA_ARGS__))
23 #endif
24 
25 void PrintWarning(const std::string &message);
26 void PrintError(const std::string &message);
27 
28 #ifdef CVMFS_NAMESPACE_GUARD
29 } // namespace CVMFS_NAMESPACE_GUARD
30 #endif
31 
32 #endif // CVMFS_LOGGING_H_
#define LogCvmfs(source, mask,...)
Definition: logging.h:20
LogSource
void PrintWarning(const string &message)
Definition: logging.cc:536
void PrintError(const string &message)
Definition: logging.cc:532