VirtualBox

source: vbox/trunk/src/VBox/Runtime/VBox/logbackdoor-redirect.cpp@ 103795

Last change on this file since 103795 was 98103, checked in by vboxsync, 22 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 3.8 KB
Line 
1/* $Id: logbackdoor-redirect.cpp 98103 2023-01-17 14:15:46Z vboxsync $ */
2/** @file
3 * VirtualBox Runtime - RTLog stubs for the stripped down IPRT used by
4 * RuntimeGuestR3Shared (X11), output is redirected
5 * to the RTLogBackdoor API where possible.
6 */
7
8/*
9 * Copyright (C) 2007-2023 Oracle and/or its affiliates.
10 *
11 * This file is part of VirtualBox base platform packages, as
12 * available from https://www.virtualbox.org.
13 *
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation, in version 3 of the
17 * License.
18 *
19 * This program is distributed in the hope that it will be useful, but
20 * WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, see <https://www.gnu.org/licenses>.
26 *
27 * The contents of this file may alternatively be used under the terms
28 * of the Common Development and Distribution License Version 1.0
29 * (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
30 * in the VirtualBox distribution, in which case the provisions of the
31 * CDDL are applicable instead of those of the GPL.
32 *
33 * You may elect to license modified versions of this file under the
34 * terms and conditions of either the GPL or the CDDL or both.
35 *
36 * SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
37 */
38
39
40/*********************************************************************************************************************************
41* Header Files *
42*********************************************************************************************************************************/
43#include <VBox/log.h>
44#include <iprt/errcore.h>
45
46
47
48/* All release logging goes to the backdoor logger anyway. */
49RTDECL(PRTLOGGER) RTLogRelGetDefaultInstance(void)
50{
51 return NULL;
52}
53
54
55/* All release logging goes to the backdoor logger anyway. */
56RTDECL(PRTLOGGER) RTLogRelGetDefaultInstanceEx(uint32_t fFlagsAndGroup)
57{
58 return NULL;
59}
60
61
62/* All logging goes to the backdoor logger anyway. */
63RTDECL(PRTLOGGER) RTLogDefaultInstance(void)
64{
65 return NULL;
66}
67
68
69/* All logging goes to the backdoor logger anyway. */
70RTDECL(PRTLOGGER) RTLogDefaultInstanceEx(uint32_t fFlagsAndGroup)
71{
72 return NULL;
73}
74
75
76/* All logging goes to the backdoor logger anyway. */
77RTDECL(PRTLOGGER) RTLogRelSetDefaultInstance(PRTLOGGER pLogger)
78{
79 return NULL;
80}
81
82
83RTDECL(void) RTLogRelPrintf(const char *pszFormat, ...)
84{
85 va_list va;
86
87 va_start(va, pszFormat);
88 RTLogBackdoorPrintfV(pszFormat, va);
89 va_end(va);
90}
91
92
93RTDECL(void) RTLogRelPrintfV(const char *pszFormat, va_list va)
94{
95 RTLogBackdoorPrintfV(pszFormat, va);
96}
97
98
99RTDECL(void) RTLogLoggerEx(PRTLOGGER pLogger, unsigned fFlags, unsigned iGroup, const char *pszFormat, ...)
100{
101 va_list va;
102
103 va_start(va, pszFormat);
104 RTLogBackdoorPrintfV(pszFormat, va);
105 va_end(va);
106}
107
108
109RTDECL(void) RTLogPrintf(const char *pszFormat, ...)
110{
111 va_list va;
112
113 va_start(va, pszFormat);
114 RTLogBackdoorPrintfV(pszFormat, va);
115 va_end(va);
116}
117
118
119RTDECL(void) RTLogPrintfV(const char *pszFormat, va_list va)
120{
121 RTLogBackdoorPrintfV(pszFormat, va);
122}
123
124
125/* Do nothing for now. */
126RTDECL(void) RTLogFlush(PRTLOGGER pLogger)
127{
128 NOREF(pLogger);
129}
130
131/* Do nothing. */
132RTDECL(int) RTLogCreate(PRTLOGGER *ppLogger, RTUINT fFlags, const char *pszGroupSettings,
133 const char *pszEnvVarBase, unsigned cGroups, const char * const * papszGroups,
134 RTUINT fDestFlags, const char *pszFilenameFmt, ...)
135{
136 return VERR_NOT_IMPLEMENTED;
137}
138
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