Skip to content

Allow automatically deleting old files #26

@agomez08

Description

@agomez08

Is your feature request related to a problem? Please describe.

Some test systems may run for several days and log data continuously. Some of them won't have an external tool to do house keeping and delete the files from the Embedded/RT system's disk, causing it to get full at some point.

Describe the solution you'd like

It will be nice to have some sort of tool integrated with the CD that would automatically deleting old files from disk based on a configurable criteria. See one potential approach in the Additional context section.

Describe alternatives you've considered
Create a separate CD. Although it makes more sense integrating the feature into the CD that is doing the data logging.
Host tool to remove files. Not desirable for applications where a host may not always be present.

Additional context
One potential approach:

System Explorer:

  • Add a "Logs Cleaner" page under each Log File section.

  • Page has a checkbox to enable the cleaner.

  • Page has a setting with checking period (how often the process will attempt to delete files)

  • Page shows on a string indicator the folder where files may be removed. Shows the configured log path if archiving is disabled or shows the Archive Directory if enabled.

  • Page shows settings with deleting criteria: Delete when files get older than, Delete when files count is greater than, Delete when folder disk usage is greater than.

image

Engine:

  • Launch async process with settings for all loggers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions