CernVM-FS
2.11.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
18
CVMFS_EXPORT
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__)); // NOLINT
25
#endif
26
27
#ifdef CVMFS_NAMESPACE_GUARD
28
}
// namespace CVMFS_NAMESPACE_GUARD
29
#endif
30
31
#endif // CVMFS_UTIL_LOGGING_H_
LogCvmfs
#define LogCvmfs(source, mask,...)
Definition:
logging.h:22
export.h
CVMFS_EXPORT
#define CVMFS_EXPORT
Definition:
export.h:11
LogSource
LogSource
Definition:
logging_internal.h:76
logging_internal.h
cvmfs
cvmfs
util
logging.h
Generated on Sun Jan 29 2023 01:23:18 for CernVM-FS by
1.8.5