Skip to content
This repository was archived by the owner on Mar 20, 2022. It is now read-only.
This repository was archived by the owner on Mar 20, 2022. It is now read-only.

Improve log rotation mechanism #54

@Nightfirecat

Description

@Nightfirecat

Rather than simply writing to realmeyeapi_<date>, the logger should rotate the log from realmeyeapi.log when instantiated; it should move the file based on its last write date.

Need to be mindful of cases such as opening realmeyeapi.log at 23:59:59, writing at 00:00:01 the next day, and having the log rotation detection move to the wrong date... Likely needs some leeway. Otherwise, maybe each log->write() command needs to do this check? Not sure how expensive it is to check.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions