VirtualBox

Changeset 94803 in vbox for trunk/include/VBox/com/utils.h


Ignore:
Timestamp:
May 4, 2022 8:01:43 AM (3 years ago)
Author:
vboxsync
Message:

com/utils: Add an extended version of VBoxLogRelCreate() which takes an optional log output interface table pointer, bugref:9955

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/utils.h

    r93115 r94803  
    8585                     PRTERRINFO pErrInfo);
    8686
     87/**
     88 * Creates a release log file, used both in VBoxSVC and in API clients.
     89 *
     90 * @param   pszEntity        Human readable name of the program.
     91 * @param   pszLogFile       Name of the release log file.
     92 * @param   fFlags           Logger instance flags.
     93 * @param   pszGroupSettings Group logging settings.
     94 * @param   pszEnvVarBase    Base environment variable name for the logger.
     95 * @param   fDestFlags       Logger destination flags.
     96 * @param   cMaxEntriesPerGroup Limit for log entries per group. UINT32_MAX for no limit.
     97 * @param   cHistory         Number of old log files to keep.
     98 * @param   uHistoryFileTime Maximum amount of time to put in a log file.
     99 * @param   uHistoryFileSize Maximum size of a log file before rotating.
     100 * @param   pOutputIf        The optional file output interface, can be NULL which will
     101 *                           make use of the default one.
     102 * @param   pvOutputIfUser   The opaque user data to pass to the callbacks in the output interface.
     103 * @param   pErrInfo         Where to return extended error information.
     104 *                           Optional.
     105 *
     106 * @returns VBox status code.
     107 *
     108 * @note Can't include log.h here because of precompiled header fun, hence pOutputIf is void *...
     109 */
     110int VBoxLogRelCreateEx(const char *pszEntity, const char *pszLogFile,
     111                       uint32_t fFlags, const char *pszGroupSettings,
     112                       const char *pszEnvVarBase, uint32_t fDestFlags,
     113                       uint32_t cMaxEntriesPerGroup, uint32_t cHistory,
     114                       uint32_t uHistoryFileTime, uint64_t uHistoryFileSize,
     115                       const void *pOutputIf, void *pvOutputIfUser,
     116                       PRTERRINFO pErrInfo);
     117
    87118} /* namespace com */
    88119
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