VirtualBox

Ignore:
Timestamp:
Mar 24, 2011 4:25:47 PM (14 years ago)
Author:
vboxsync
Message:

log rotation review and adjustments: Don't delete any excess files if log roation is disabled - we don't know what these files might be. Moved RTLOGGERFILE into log.c. Keep RTLogCreate simple, anyone needing rotation can use RTLogCreateEx[V]. Made RTLogGetDestinations produce the log rotation bits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrv.c

    r36344 r36408  
    425425    PRTLOGGER pRelLogger;
    426426    rc = RTLogCreate(&pRelLogger, 0 /* fFlags */, "all",
    427                      "VBOX_RELEASE_LOG", RT_ELEMENTS(s_apszGroups), s_apszGroups, RTLOGDEST_STDOUT | RTLOGDEST_DEBUGGER,
    428                      NULL /* pfnBeginEnd */, 0 /* cHistory */, 0 /* cbHistoryFileMax */, 0 /* uHistoryTimeMax */,
    429                      NULL);
     427                     "VBOX_RELEASE_LOG", RT_ELEMENTS(s_apszGroups), s_apszGroups, RTLOGDEST_STDOUT | RTLOGDEST_DEBUGGER, NULL);
    430428    if (RT_SUCCESS(rc))
    431429        RTLogRelSetDefaultInstance(pRelLogger);
     
    47474745                                 s_apszGroups,
    47484746                                 RTLOGDEST_STDOUT | RTLOGDEST_DEBUGGER,
    4749                                  NULL /* pfnBeginEnd */, 0 /* cHistory */, 0 /* cbHistoryFileMax */, 0 /* uHistoryTimeMax */,
    47504747                                 NULL);
    47514748                if (RT_SUCCESS(rc))
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