OSVR Framework (Internal Development Docs)
0.6-1962-g59773924
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Verbosity.h
Go to the documentation of this file.
1
14
// Copyright 2014 Sensics, Inc.
15
//
16
// Licensed under the Apache License, Version 2.0 (the "License");
17
// you may not use this file except in compliance with the License.
18
// You may obtain a copy of the License at
19
//
20
// http://www.apache.org/licenses/LICENSE-2.0
21
//
22
// Unless required by applicable law or agreed to in writing, software
23
// distributed under the License is distributed on an "AS IS" BASIS,
24
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25
// See the License for the specific language governing permissions and
26
// limitations under the License.
27
28
#ifndef INCLUDED_Verbosity_h_GUID_92D43527_D3AC_4BB4_FA39_91252412C1FF
29
#define INCLUDED_Verbosity_h_GUID_92D43527_D3AC_4BB4_FA39_91252412C1FF
30
31
#include <
osvr/Util/MacroToolsC.h
>
32
33
#define OSVR_UTIL_DEV_VERBOSE
34
40
#if defined(OSVR_UTIL_DEV_VERBOSE) && !defined(OSVR_DEV_VERBOSE_DISABLE)
41
42
#include <
osvr/Util/Log.h
>
43
#include <
osvr/Util/Logger.h
>
44
45
#define OSVR_TRACE(...) \
46
OSVR_UTIL_MULTILINE_BEGIN::osvr::util::log::make_logger("OSVR")->trace() \
47
<< __FILE__ << ":" << __LINE__ << ": " << __VA_ARGS__; \
48
OSVR_UTIL_MULTILINE_END
49
#define OSVR_DEBUG(...) \
50
OSVR_UTIL_MULTILINE_BEGIN::osvr::util::log::make_logger("OSVR")->debug() \
51
<< __FILE__ << ":" << __LINE__ << ": " << __VA_ARGS__; \
52
OSVR_UTIL_MULTILINE_END
53
#define OSVR_DEV_VERBOSE(...) \
54
OSVR_UTIL_MULTILINE_BEGIN::osvr::util::log::make_logger("OSVR")->info() \
55
<< __FILE__ << ":" << __LINE__ << ": " << __VA_ARGS__; \
56
OSVR_UTIL_MULTILINE_END
57
58
#else
59
60
#define OSVR_TRACE(...) OSVR_UTIL_MULTILINE_BEGIN OSVR_UTIL_MULTILINE_END
61
#define OSVR_DEBUG(...) OSVR_UTIL_MULTILINE_BEGIN OSVR_UTIL_MULTILINE_END
62
#define OSVR_DEV_VERBOSE(...) OSVR_UTIL_MULTILINE_BEGIN OSVR_UTIL_MULTILINE_END
63
64
#endif // OSVR_UTIL_DEV_VERBOSE && !OSVR_DEV_VERBOSE_DISABLE
65
66
#endif // INCLUDED_Verbosity_h_GUID_92D43527_D3AC_4BB4_FA39_91252412C1FF
Log.h
Header for basic internal log reference. To actually log to the produced loggers, include
Logger.h
Header to include for OSVR-internal usage of the logging mechanism: provides the needed definition of...
MacroToolsC.h
Header containing basic macro tools.
osvr
Util
Verbosity.h
Generated on Tue May 16 2017 15:22:20 for OSVR Framework (Internal Development Docs) by
Doxygen
1.8.8