VirtualBox

source: vbox/trunk/src/VBox/Main/include/Logging.h@ 3254

Last change on this file since 3254 was 2981, checked in by vboxsync, 17 years ago

InnoTek -> innotek: all the headers and comments.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1/** @file
2 *
3 * VirtualBox COM: logging macros and function definitions
4 */
5
6/*
7 * Copyright (C) 2006-2007 innotek GmbH
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License as published by the Free Software Foundation,
13 * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
14 * distribution. VirtualBox OSE is distributed in the hope that it will
15 * be useful, but WITHOUT ANY WARRANTY of any kind.
16 *
17 * If you received this file as part of a commercial VirtualBox
18 * distribution, then only the terms of your commercial VirtualBox
19 * license agreement apply instead of the previous paragraph.
20 */
21
22#ifndef ____H_LOGGING
23#define ____H_LOGGING
24
25/** @def LOG_GROUP_MAIN_OVERRIDE
26 * Define this macro to point to the desired log group before including
27 * the |Logging.h| header if you want to use a group other than LOG_GROUP_MAIN
28 * for logging from within Main source files.
29 *
30 * @example #define LOG_GROUP_MAIN_OVERRIDE LOG_GROUP_HGCM
31 */
32
33/*
34 * We might be including the VBox logging subsystem before
35 * including this header file, so reset the logging group.
36 */
37#ifdef LOG_GROUP
38# undef LOG_GROUP
39#endif
40#ifdef LOG_GROUP_MAIN_OVERRIDE
41# define LOG_GROUP LOG_GROUP_MAIN_OVERRIDE
42#else
43# define LOG_GROUP LOG_GROUP_MAIN
44#endif
45
46/* Ensure log macros are enabled if release logging is requested */
47#if defined (VBOX_MAIN_RELEASE_LOG) && !defined (DEBUG)
48# ifndef LOG_ENABLED
49# define LOG_ENABLED
50# endif
51#endif
52
53#include <VBox/log.h>
54#include <iprt/assert.h>
55
56/** @deprecated Please use LogFlowThisFunc instead! */
57#define LogFlowMember(m) \
58 do { LogFlow (("{%p} ", this)); LogFlow (m); } while (0)
59
60#endif // ____H_LOGGING
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette