Skip to content

Save the log to the rotated log file instead of error.log until restarting the web server #437

@Code-Egg

Description

@Code-Egg

Configuration for logging;

errorlog logs/error.log {
    logLevel INFO
    debugLevel 0
    rollingSize 10M
    enableStderrLog 1
}

Issue:
We did run a script to access the url for purpose to build up the log. After it hits rolling size of 10M, the log is rotated, we can see the rotated error.log.2025_01_08 is created and error.log become 0 bytes. What comes next is that the log will continue writing at error.log.2025_01_08 instead of error.log . It will continue to do so until we restart lsws then it will write back at error.log we did continue with the test until log is rotated and notice it will create error.log.2025_01_08.01 and continue writing the log there instead of error.log

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