Skip to content

Logs Not Rotating When Process Runs Via CRON #4

@vguaglione

Description

@vguaglione

I have a cron job that kicks off a node.js process every 10 minutes. I've noticed that the log I create for this process using stream-rotate never gets rotated. My frequency interval is set to 1d (1 day). While investigating, I learned that if I set the freq to 1m, the log rotates. However, I need the log to rotate on a daily basis for this process.

Also note, I have a website that has been built using node.js and have implemented stream-rotate there. Log rotation is happening on a daily basis as expected. The only difference I see here is that my site is always running, and the CRON process ends after each run. Is this a bug or am I not using stream-rotate properly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions