litespeedtech / litespeedtech/openlitespeed

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

Open
#437 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.5k
Forks
233
Avg merge
2d 19h
Merged PRs (30d)
5

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the shown errorlog configuration and requests that exceed the 10M rolling size. Trace the log rotation behavior and verify that, after each rotation, new entries return to error.log rather than the rotated file; repeat until a second rotation occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.