log4js-node / log4js-node/streamroller

Rollover on startup

Open
#120 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
38
Forks
20
PR merge metrics
No merged PRs in 30d

Description

Is it possible to trigger a rollover on every application restart? Similar to Log4j's `OnStartupTriggeringPolicy`

> Triggers a rollover on every restart, but only if the file size is greater than zero.

[Link](https://logging.apache.org/log4j/2.x/log4j-core/apidocs/org/apache/logging/log4j/core/appender/rolling/OnStartupTriggeringPolicy.html)

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

The issue names no source files, tests, or entry points. Start by locating the existing rollover behavior in streamroller and reviewing the linked Log4j startup policy; done should mean an application restart can trigger rollover only when the existing log file is non-empty.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Feature
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.