1 | /* $Id: Logging.h 58144 2015-10-09 12:44:44Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VirtualBox COM - logging macros and function definitions
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2004-2015 Oracle Corporation
|
---|
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:
|
---|
27 | * @code
|
---|
28 | * #define LOG_GROUP_MAIN_OVERRIDE LOG_GROUP_HGCM
|
---|
29 | * @endcode
|
---|
30 | */
|
---|
31 |
|
---|
32 | /*
|
---|
33 | * We might be including the VBox logging subsystem before
|
---|
34 | * including this header file, so reset the logging group.
|
---|
35 | */
|
---|
36 | #ifdef LOG_GROUP
|
---|
37 | # undef LOG_GROUP
|
---|
38 | #endif
|
---|
39 | #ifdef LOG_GROUP_MAIN_OVERRIDE
|
---|
40 | # define LOG_GROUP LOG_GROUP_MAIN_OVERRIDE
|
---|
41 | #else
|
---|
42 | # define LOG_GROUP LOG_GROUP_MAIN
|
---|
43 | #endif
|
---|
44 | #ifndef VBOXSVC_LOG_DEFAULT
|
---|
45 | # define VBOXSVC_LOG_DEFAULT "all"
|
---|
46 | #endif
|
---|
47 |
|
---|
48 | #include <VBox/log.h>
|
---|
49 |
|
---|
50 | #endif // !____H_LOGGING
|
---|
51 | /* vi: set tabstop=4 shiftwidth=4 expandtab: */
|
---|