d4187366d3
Update example to not use a filename that causes problems on windows and split out rotate example into its own file, since it's the only thing that is linux-only
Nate Finch
2014-06-24 08:50:20 -04:00
9b971d9efa
add tests for yaml and toml in addition to the existing json test
Nate Finch
2014-06-18 14:16:12 -04:00
72cc861377
Change definition of maxage to make it easier (i.e. possible) to load from a json/yaml/etc
Nate Finch
2014-06-18 08:09:40 -04:00
06f4f4ea5e
go back to using defer to unlock in close and rotate
Nate Finch
2014-06-16 15:29:37 -04:00
ffd1aed5ff
make the code in Write a little more logical, and add a missing test, though the code worked correctly before.
Nate Finch
2014-06-16 13:24:02 -04:00
fc6790d66f
refactor internally a little to clean up the code. Make the main example a real example so we make sure it compiles
Nate Finch
2014-06-16 12:55:21 -04:00
03e9c77b42
remove erroneous old comment
Nate Finch
2014-06-16 09:52:57 -04:00
5aff0e0bbf
add locks and the Rotate() function. Remove IsWriteTooLong function. Fix a bug in the link to time constants.
Nate Finch
2014-06-16 06:48:32 -04:00
245c33893c
add code for always opening new with default dir and name. with test.
Nate Finch
2014-06-15 08:53:04 -04:00
29a1a3fa69
make golint happy
Nate Finch
2014-06-15 08:14:23 -04:00
625d6c6216
minor wording update
Nate Finch
2014-06-15 08:12:37 -04:00
1bb33e2fca
more tests and fixed a bug the tests found. Cleaned up the documentation. Renamed Backups to MaxBackups.
Nate Finch
2014-06-15 06:57:23 -04:00
944464c29a
MIT License
Nate Finch
2014-06-14 08:32:16 -04:00
814d136090
update readme with godoc
Nate Finch
2014-06-14 08:31:35 -04:00