VirtualBox

Ignore:
Timestamp:
Apr 24, 2012 10:13:40 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
77602
Message:

Main+Frontends: move release logging setup to the glue code (to eliminate spreading code duplication), various minor fixes and cleanups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/xpcom/server.cpp

    r39459 r41040  
    55
    66/*
    7  * Copyright (C) 2006-2011 Oracle Corporation
     7 * Copyright (C) 2004-2012 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3636
    3737#include <VBox/param.h>
    38 #include <VBox/version.h>
    3938
    4039#include <iprt/buildconfig.h>
     
    892891            pszLogFile = RTStrDup(szLogFile);
    893892    }
    894     VBoxSVCLogRelCreate(pszLogFile, cHistory, uHistoryFileTime, uHistoryFileSize);
     893    char szError[RTPATH_MAX + 128];
     894    vrc = com::VBoxLogRelCreate("XPCOM Server", pszLogFile,
     895                                RTLOGFLAGS_PREFIX_THREAD | RTLOGFLAGS_PREFIX_TIME_PROG,
     896                                "all", "VBOXSVC_RELEASE_LOG",
     897                                RTLOGDEST_FILE, UINT32_MAX /* cMaxEntriesPerGroup */,
     898                                cHistory, uHistoryFileTime, uHistoryFileSize,
     899                                szError, sizeof(szError));
     900    if (RT_FAILURE(vrc))
     901        return RTMsgErrorExit(RTEXITCODE_FAILURE, "failed to open release log (%s, %Rrc)", szError, vrc);
    895902
    896903    daemon_pipe_wr = PR_GetInheritedFD(VBOXSVC_STARTUP_PIPE_NAME);
     
    10011008                putchar('*');
    10021009            RTPrintf("\n%s\n", szBuf);
    1003             RTPrintf("(C) 2008-" VBOX_C_YEAR " " VBOX_VENDOR "\n"
     1010            RTPrintf("(C) 2004-" VBOX_C_YEAR " " VBOX_VENDOR "\n"
    10041011                     "All rights reserved.\n");
    10051012#ifdef DEBUG
Note: See TracChangeset for help on using the changeset viewer.

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