VirtualBox

Ignore:
Timestamp:
Apr 24, 2012 10:13:40 AM (13 years ago)
Author:
vboxsync
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/win/svcmain.cpp

    r38636 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
     
    336336                pszLogFile = RTStrDup(szLogFile);
    337337        }
    338         VBoxSVCLogRelCreate(pszLogFile, cHistory, uHistoryFileTime, uHistoryFileSize);
     338        vrc = com::VBoxLogRelCreate("COM Server", pszLogFile,
     339                                    RTLOGFLAGS_PREFIX_THREAD | RTLOGFLAGS_PREFIX_TIME_PROG,
     340                                    "all", "VBOXSVC_RELEASE_LOG",
     341                                    RTLOGDEST_FILE, UINT32_MAX /* cMaxEntriesPerGroup */,
     342                                    cHistory, uHistoryFileTime, uHistoryFileSize,
     343                                    szError, sizeof(szError));
     344        if (RT_FAILURE(vrc))
     345            return RTMsgErrorExit(RTEXITCODE_FAILURE, "failed to open release log (%s, %Rrc)", szError, vrc);
    339346    }
    340347
Note: See TracChangeset for help on using the changeset viewer.

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