Skip to content
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

V3.0 #132

Open
wants to merge 31 commits into
base: master
Choose a base branch
from
Open

V3.0 #132

wants to merge 31 commits into from

Commits on Jun 27, 2014

  1. v2 is go!

    natefinch committed Jun 27, 2014
    Configuration menu
    Copy the full SHA
    78d709c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3aa94be View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cbb980c View commit details
    Browse the repository at this point in the history
  4. fix link in badge

    natefinch committed Jun 27, 2014
    Configuration menu
    Copy the full SHA
    5265fd1 View commit details
    Browse the repository at this point in the history
  5. fix link in badge

    natefinch committed Jun 27, 2014
    Configuration menu
    Copy the full SHA
    afe0d23 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2014

  1. Configuration menu
    Copy the full SHA
    2837c0e View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2014

  1. Configuration menu
    Copy the full SHA
    8b22400 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2014

  1. Configuration menu
    Copy the full SHA
    689fc50 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6d3dfa6 View commit details
    Browse the repository at this point in the history
  3. Update README.md

    add badge for windows build
    natefinch committed Jul 25, 2014
    Configuration menu
    Copy the full SHA
    d28785c View commit details
    Browse the repository at this point in the history

Commits on May 11, 2015

  1. Configuration menu
    Copy the full SHA
    894827f View commit details
    Browse the repository at this point in the history

Commits on May 12, 2015

  1. Merge pull request #11 from elithrar/v2.0

    Fixed import in example test to use gopkg.in.
    natefinch committed May 12, 2015
    Configuration menu
    Copy the full SHA
    75cb349 View commit details
    Browse the repository at this point in the history

Commits on May 21, 2015

  1. Fix bug #12

    Fixes bug #12. If the first write to a file would cause it to rotate, instead
    of rotating, we'd just move it aside.  This change fixes that problem
    by ensuring that we just run rotate in this situation, which does the
    right thing (open new and then cleanup.)  Also added test to verify
    the fix.
    natefinch committed May 21, 2015
    Configuration menu
    Copy the full SHA
    588a21f View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2015

  1. add coverage badge

    natefinch committed Jun 22, 2015
    Configuration menu
    Copy the full SHA
    20b71e5 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2015

  1. Switch to using gopkg.in/yaml.v2

    bz2 committed Oct 11, 2015
    Configuration menu
    Copy the full SHA
    a8ed6f4 View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2015

  1. Merge pull request #14 from bz2/use_yaml_v2

    Switch to using gopkg.in/yaml.v2
    natefinch committed Oct 13, 2015
    Configuration menu
    Copy the full SHA
    600ceb4 View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2016

  1. Update rotate_test.go to use v2 of project

    Hi there.  I thought it would be nice for the rotate example to use v2 of the package.
    Tim Potter committed Jan 25, 2016
    Configuration menu
    Copy the full SHA
    3cfd7a4 View commit details
    Browse the repository at this point in the history
  2. Use gopkg.in provider instead of github

    Tim Potter committed Jan 25, 2016
    Configuration menu
    Copy the full SHA
    5bae0dc View commit details
    Browse the repository at this point in the history
  3. Merge pull request #19 from tpot/patch-1

    Update rotate_test.go to use v2 of project
    natefinch committed Jan 25, 2016
    Configuration menu
    Copy the full SHA
    514cbda View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2016

  1. fix filemode in tests (#28)

    This fixes #20 by using a more restrictive filemode during tests.
    natefinch authored Oct 7, 2016
    Configuration menu
    Copy the full SHA
    e21e5cb View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2016

  1. Configuration menu
    Copy the full SHA
    dd45e6a View commit details
    Browse the repository at this point in the history

Commits on May 31, 2017

  1. Add support for log file compression (#43)

    * Check test file content, not just length.
    
    It is insufficient to just check the length of test files,
    especially given that many of the tests result in multiple files
    that have the same content/length. Instead, actually check that
    the file content is what it is expected to be. Vary the content
    that is being written so that the test failures become apparent.
    
    This also fixes a case where the length of the wrong value is
    checked following a write (it happens to work since the length
    of the value checked is the same as that written).
    
    * Make timeFromName actually return a time.
    
    Simplify the timeFromName parsing (we only need to slice once,
    not twice) and actually parse the extracted time in the
    timeFromName function rather than returning an abitrary string
    that may or may not be a time. Also conver the timeFromName
    tests into table driven tests.
    
    * Add support for compressing log files.
    
    Rather than scanning for old log files (under lock) when a rotation
    occurs, a goroutine is started when we first open or create a log
    file. Post-rotation compression (if enabled) and removal of stale
    log files is now designated to this goroutine.
    
    Scanning, removal and compression are run in the same goroutine in
    order to minimise background disk I/O, with removals being processed
    prior to compression in order to free up disk space.
    
    This results in a small change in existing behaviour - previously
    only logs would be removed when the first rotation occurs, whereas
    now logs will potentially be removed when logging first starts.
    
    * Rework file ownership test.
    
    Previously the test only verified that the code called Chown
    but failed to verify what it actually called Chown on. This
    reworks the code so that we have a fake file system that tracks
    file ownership.
    
    This also simplifies upcoming additional tests.
    
    * Clone file owner and mode on compressed log.
    
    Clone the log file owner and the log file mode to the compressed
    log file. Add tests to ensure that this is handled correctly.
    4a6f656c authored and natefinch committed May 31, 2017
    Configuration menu
    Copy the full SHA
    a96e638 View commit details
    Browse the repository at this point in the history
  2. switch to travis (#44)

    natefinch authored May 31, 2017
    Configuration menu
    Copy the full SHA
    df99d62 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2017

  1. Configuration menu
    Copy the full SHA
    aee4629 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2018

  1. Fix test timing (#64)

    fix test timeout on CI
    natefinch authored Aug 17, 2018
    Configuration menu
    Copy the full SHA
    7d6a187 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2019

  1. Make default file permissions more restrictive (#83)

    This asures that the process can still read and write its own log file,
    but that other users cannot. This is a fairly standard mode for log
    files in linux.
    JAORMX authored and natefinch committed Apr 11, 2019
    Configuration menu
    Copy the full SHA
    2e8fbee View commit details
    Browse the repository at this point in the history
  2. fix a typo (#62)

    kangxiaoning authored and natefinch committed Apr 11, 2019
    Configuration menu
    Copy the full SHA
    4b74a4d View commit details
    Browse the repository at this point in the history
  3. use 0755 to create new dir (#68)

    caibirdme authored and natefinch committed Apr 11, 2019
    Configuration menu
    Copy the full SHA
    94d9e49 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2020

  1. cleanup and module support (#77)

    * cleanup and module support
    glaslos authored Oct 21, 2020
    Configuration menu
    Copy the full SHA
    47ffae2 View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2021

  1. WiP

    Fernando Silva committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    ac7d08a View commit details
    Browse the repository at this point in the history
  2. WiP

    Fernando Silva committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    7918c36 View commit details
    Browse the repository at this point in the history