VirtualBox

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

Last change on this file since 7954 was 5999, checked in by vboxsync, 17 years ago

The Giant CDDL Dual-License Header Change.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 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 (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef ____H_LOGGING
19#define ____H_LOGGING
20
21/** @def LOG_GROUP_MAIN_OVERRIDE
22 * Define this macro to point to the desired log group before including
23 * the |Logging.h| header if you want to use a group other than LOG_GROUP_MAIN
24 * for logging from within Main source files.
25 *
26 * @example #define LOG_GROUP_MAIN_OVERRIDE LOG_GROUP_HGCM
27 */
28
29/*
30 * We might be including the VBox logging subsystem before
31 * including this header file, so reset the logging group.
32 */
33#ifdef LOG_GROUP
34# undef LOG_GROUP
35#endif
36#ifdef LOG_GROUP_MAIN_OVERRIDE
37# define LOG_GROUP LOG_GROUP_MAIN_OVERRIDE
38#else
39# define LOG_GROUP LOG_GROUP_MAIN
40#endif
41
42/* Ensure log macros are enabled if release logging is requested */
43#if defined (VBOX_MAIN_RELEASE_LOG) && !defined (DEBUG)
44# ifndef LOG_ENABLED
45# define LOG_ENABLED
46# endif
47#endif
48
49#include <VBox/log.h>
50#include <iprt/assert.h>
51
52/** @deprecated Please use LogFlowThisFunc instead! */
53#define LogFlowMember(m) \
54 do { LogFlow (("{%p} ", this)); LogFlow (m); } while (0)
55
56#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