Skip to content

log: support to disable log rotate by hours#2063

Merged
zzzckck merged 1 commit intobnb-chain:developfrom
buddh0:can_disable_log_rorate_by_hours
Dec 14, 2023
Merged

log: support to disable log rotate by hours#2063
zzzckck merged 1 commit intobnb-chain:developfrom
buddh0:can_disable_log_rorate_by_hours

Conversation

@buddh0
Copy link
Copy Markdown
Contributor

@buddh0 buddh0 commented Dec 13, 2023

Description

log: support to disable log rotate by hours

Rationale

#114 suggest that

So would be nice to add an option into the config file to:

1. rotate by size
2. rotate by date (daily, hourly, weekly, monthly, etc)
3. disable rotation altogether

to support type 1, only rotate by size,
we should have the ablitiy to disable the default one hour rotation, this PR add this support

by setting RotateHours=0 in config.toml, rotate by hours is disabled

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

@zzzckck zzzckck merged commit 64be7df into bnb-chain:develop Dec 14, 2023
@buddh0 buddh0 deleted the can_disable_log_rorate_by_hours branch December 22, 2023 07:48
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