VirtualBox

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

Last change on this file since 20374 was 19120, checked in by vboxsync, 16 years ago

Various files: Virtual Box -> VirtualBox.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 KB
Line 
1/* $Id: logbackdoor-redirect.cpp 19120 2009-04-22 20:34:12Z 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 Sun Microsystems, Inc.
10 *
11 * This file is part of VirtualBox Open Source Edition (OSE), as
12 * available from http://www.virtualbox.org. This file is free software;
13 * you can redistribute it and/or modify it under the terms of the GNU
14 * General Public License (GPL) as published by the Free Software
15 * Foundation, in version 2 as it comes in the "COPYING" file of the
16 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
17 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
18 *
19 * The contents of this file may alternatively be used under the terms
20 * of the Common Development and Distribution License Version 1.0
21 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
22 * VirtualBox OSE distribution, in which case the provisions of the
23 * CDDL are applicable instead of those of the GPL.
24 *
25 * You may elect to license modified versions of this file under the
26 * terms and conditions of either the GPL or the CDDL or both.
27 *
28 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
29 * Clara, CA 95054 USA or visit http://www.sun.com if you need
30 * additional information or have any questions.
31 */
32
33/*******************************************************************************
34* Header Files *
35*******************************************************************************/
36#include <VBox/log.h>
37#include <VBox/err.h>
38
39
40
41/* All release logging goes to the backdoor logger anyway. */
42RTDECL(PRTLOGGER) RTLogRelDefaultInstance(void)
43{
44 return NULL;
45}
46
47
48/* All logging goes to the backdoor logger anyway. */
49RTDECL(PRTLOGGER) RTLogDefaultInstance(void)
50{
51 return NULL;
52}
53
54/* All logging goes to the backdoor logger anyway. */
55RTDECL(PRTLOGGER) RTLogRelSetDefaultInstance(PRTLOGGER pLogger)
56{
57 return NULL;
58}
59
60RTDECL(void) RTLogRelPrintf(const char *pszFormat, ...)
61{
62 va_list va;
63
64 va_start(va, pszFormat);
65 RTLogBackdoorPrintfV(pszFormat, va);
66 va_end(va);
67}
68
69
70RTDECL(void) RTLogRelPrintfV(const char *pszFormat, va_list va)
71{
72 RTLogBackdoorPrintfV(pszFormat, va);
73}
74
75
76RTDECL(void) RTLogLoggerEx(PRTLOGGER pLogger, unsigned fFlags, unsigned iGroup, const char *pszFormat, ...)
77{
78 va_list va;
79
80 va_start(va, pszFormat);
81 RTLogBackdoorPrintfV(pszFormat, va);
82 va_end(va);
83}
84
85
86RTDECL(void) RTLogPrintf(const char *pszFormat, ...)
87{
88 va_list va;
89
90 va_start(va, pszFormat);
91 RTLogBackdoorPrintfV(pszFormat, va);
92 va_end(va);
93}
94
95
96RTDECL(void) RTLogPrintfV(const char *pszFormat, va_list va)
97{
98 RTLogBackdoorPrintfV(pszFormat, va);
99}
100
101
102/* Do nothing for now. */
103RTDECL(void) RTLogFlush(PRTLOGGER)
104{
105}
106
107/* Do nothing. */
108RTDECL(int) RTLogCreate(PRTLOGGER *ppLogger, RTUINT fFlags, const char *pszGroupSettings,
109 const char *pszEnvVarBase, unsigned cGroups, const char * const * papszGroups,
110 RTUINT fDestFlags, const char *pszFilenameFmt, ...)
111{
112 return VERR_NOT_IMPLEMENTED;
113}
Note: See TracBrowser for help on using the repository browser.

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