zowe / zowe/zowe-client-python-sdk

[core] Rotate log files to limit amount of disk space used

Open
#272 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement priority-low
Dominant language
Python
Stars
44
Forks
38
Avg merge
1d 3h
Merged PRs (30d)
1

Description

If all the logs are written to the same file, over a long period of time it will grow in size and become many MB. We may want to investigate the RotatingFileHandler class which switches logging to a new file when the file exceeds a certain size, and deletes old files (similar to what our Node.js SDK does).

Since logging to a file is working, this could be addressed in a separate issue 🙂

Originally posted by @t1m0thyj in https://github.com/zowe/zowe-client-python-sdk/pull/268#discussion_r1618718411

Contributor guide

Open the contributing guide

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

Locate the SDK's logging setup and determine where file logging is configured; no source file or test is named in the issue. Review Python's RotatingFileHandler and the Node.js SDK's comparable behavior, then define and test rotation size and retention so oversized logs are rotated and old files are removed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
observability-sre
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.