Skip to content

Add API to configure revlog output directory (parallel to CTRE's SignalLogger.setPath()) #28

@nlaverdure

Description

@nlaverdure

Feature Request

Please add a way to configure the directory where the REV Power Distribution Hub writes its .revlog files.

Current behavior

The PDH writes revlogs to a fixed path (/U/logs/) with no way to change it from robot code. The StatusLogger API only exposes start(), stop(), and disableAutoLogging().

Desired behavior

An API call like StatusLogger.setPath(String directory) that directs revlog output to a specified directory before logging begins.

Why this matters

We'd like to be able to cross-reference all log files (.revlog, .wpilog, .hoot) generated in a given session. We can do this by ensuring they are organized together in a directory unique to the current session:

String sessionDir = "/U/logs/exampleSessionDir/";
SignalLogger.setPath(sessionDir); 
Logger.addDataReceiver(new WPILOGWriter(sessionDir));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions