-
Notifications
You must be signed in to change notification settings - Fork 518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add rotation of log files by size. Configuration requires user to pr… #288
Open
knsmathers
wants to merge
9
commits into
trentm:master
Choose a base branch
from
knsmathers:rotate-log-by-size
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
2910ce7
Add rotation of log files by size. Configuration requires user to pr…
knsmathers 3f5cd4c
Validate size option value. Rotate the initial log file immediately …
knsmathers a7701ea
Better validation for max file size option.
knsmathers 0121697
Take into consideration initial file size. If not greater than max f…
knsmathers 89abb97
Tweak to config to allow for config without size or period (will use …
knsmathers 4d14700
Remove check for neither size nor period - was not allowed default to…
knsmathers 959deab
Push message to queue before rotation to avoid losing it.
knsmathers 4d12e54
Re-enable close function
danvarga 820a531
Merge pull request #1 from danvarga/rotate-log-by-size
knsmathers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By checking the file and rotating immediately, we lose the log message that caused the rotation.
Can be resolved by adding a "this.rotQueue.push(s);" before the call to rotate.
Although the function returns false, this isn't an indicator that the caller should retry - simply an indicator that the data has been buffered.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching this! Fixed!
On Sat, Feb 6, 2016 at 10:55 AM, Jim Tupper [email protected]
wrote:
Kevin Smathers
Product Development Engineer
Tanium, Inc.
[email protected]