Skip to content

Add symlink to active logging directory #7064

Closed
@daxy01

Description

Would it be possible to add a symlink in the log directory to the directory where the active logs are stored?
e.g. When starting z2m it creates the directory "2021-04-12.15-53-33". After a few restarts (due to testing for example), it becomes somewhat harder to find the right directory.

It would be ideal if, when z2m starts, log/2021-04-12.15-53-33 is still be created, but then also a symlink is added for log/current which points to log/2021-04-12.15-53-33. Of course any existing symlink must be removed first.

This way one can easily review logs under log/current/log.txt 😀

Unfortunately I am not able to change lib/util/logger.js myself to add this capability else I would have submitted a PR myself.
Thanks for considering!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions