zowe / zowe/zowe-client-python-sdk
[core] Rotate log files to limit amount of disk space used
Nobody has claimed this yet.
- 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
RotatingFileHandlerclass 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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