Skip to content

Conversation

@dplewis
Copy link
Member

@dplewis dplewis commented Dec 24, 2019

Addresses https://community.parseplatform.org/t/server-log-retention/867/2.

https://github.com/winstonjs/winston-daily-rotate-file#options

Maximum number of logs to keep. If not set, no logs will be removed. This can be a number of files or number of days. If using days, add 'd' as the suffix. (default: null).

I'll run this in production for a few days. I assume it works.

Useful for saving disk space.

Update winston-daily-rotate-file package to 4.4.0.

https://community.parseplatform.org/t/server-log-retention/867/2

Maximum number of logs to keep. If not set, no logs will be removed. This can be a number of files or number of days. If using days, add 'd' as the suffix. (default: null).

I'll run this in production for a few days. I assume it works.

Useful for saving disk space.

Update winston-daily-rotate-file package to 4.4.0
@codecov
Copy link

codecov bot commented Dec 24, 2019

Codecov Report

Merging #6296 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6296      +/-   ##
==========================================
- Coverage   93.84%   93.83%   -0.01%     
==========================================
  Files         169      169              
  Lines       11570    11571       +1     
==========================================
  Hits        10858    10858              
- Misses        712      713       +1
Impacted Files Coverage Δ
src/Options/index.js 100% <ø> (ø) ⬆️
src/Options/Definitions.js 100% <ø> (ø) ⬆️
src/Controllers/index.js 96.66% <100%> (ø) ⬆️
src/Adapters/Logger/WinstonLogger.js 100% <100%> (ø) ⬆️
src/RestWrite.js 93.62% <0%> (-0.17%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 49a0405...995f61e. Read the comment docs.

@dplewis
Copy link
Member Author

dplewis commented Dec 24, 2019

Just a quick note this will not work for a separate live query server. If there is an agreement we can add a default for this.

@dplewis dplewis merged commit 1a99cb3 into master Dec 24, 2019
@dplewis dplewis deleted the log-retention branch December 24, 2019 17:35
@dplewis
Copy link
Member Author

dplewis commented Dec 24, 2019

I ran it and it works great!

UnderratedDev pushed a commit to UnderratedDev/parse-server that referenced this pull request Mar 21, 2020
https://community.parseplatform.org/t/server-log-retention/867/2

Maximum number of logs to keep. If not set, no logs will be removed. This can be a number of files or number of days. If using days, add 'd' as the suffix. (default: null).

I'll run this in production for a few days. I assume it works.

Useful for saving disk space.

Update winston-daily-rotate-file package to 4.4.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants