~hduran-8/+junk/caddy

« back to all changes in this revision

Viewing changes to debian/gocode/src/gopkg.in/natefinch/lumberjack.v2/README.md

  • Committer: Horacio Durán
  • Date: 2017-01-20 16:21:20 UTC
  • Revision ID: horacio.duran@canonical.com-20170120162120-l82mfqwmsclnk838
Upgrade to 0.9.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
original name. Thus, the filename you give Logger is always the "current" log
88
88
file.
89
89
 
 
90
Backups use the log file name given to Logger, in the form `name-timestamp.ext`
 
91
where name is the filename without the extension, timestamp is the time at which
 
92
the log was rotated formatted with the time.Time format of
 
93
`2006-01-02T15-04-05.000` and the extension is the original extension.  For
 
94
example, if your Logger.Filename is `/var/log/foo/server.log`, a backup created
 
95
at 6:30pm on Nov 11 2016 would use the filename
 
96
`/var/log/foo/server-2016-11-04T18-30-00.000.log`
 
97
 
90
98
### Cleaning Up Old Log Files
91
99
Whenever a new logfile gets created, old log files may be deleted.  The most
92
100
recent files according to the encoded timestamp will be retained, up to a