Debian Codegraph @

Changes

raw
1 0.321 2019-06-27 (PERLANCAR)
2
3 - Revert previous commit (add flush()). To simulate a filehandle, it's
4 recommended to use Tie::Handle::FileWriteRotate instead.
5
6
7 0.320 2019-06-27 (PERLANCAR)
8
9 - Add a no-op flush().
10
11
12 0.31 2016-10-07 (PERLANCAR)
13
14 - Document binmode option [GH#12] [GH#13].
15
16 - Remove usage of Carp to shave a bit off startup overhead.
17
18 - Delay loading Proc::PID::File a bit more.
19
20
21 0.30 2016-06-06 (PERLANCAR)
22
23 - No functional changes.
24
25 - Replace inchworm operator with plain 'scalar', causes error in 5.24+
26 [RT#115088] (ref: RT#111786).
27
28
29 0.29 2015-10-20 (PERLANCAR)
30
31 - No functional changes.
32
33 - To reduce deps, remove runtime use of Taint::Runtime.
34
35
36 0.28 2015-01-26 (PERLANCAR)
37
38 - Now check argument to new(), unknown arguments will croak.
39
40 - Add option: rotate_probability, to increase writing speed by only
41 doing rotate checks probabilistically, at the consequence of writes
42 "spilling" for a bit.
43
44
45 0.27 2015-01-23 (PERLANCAR)
46
47 - No functional changes.
48
49 - [Bugfix] Fix compression when logging dir is not the current directory
50 (Jonathan G. Rennison).
51
52
53 0.26 2015-01-22 (PERLANCAR)
54
55 - Add option: lock_mode (can be set to 'write' [the default] or
56 'none'/'exclusive'). Setting this option to 'none'/'exclusive' can
57 increase write performance, but setting to 'none' means disabling
58 locking and should be done if you expect only one writer, and setting
59 to 'exclusive' means holding the lock for a long time. (Thanks
60 Jonathan G. Rennison).
61
62
63 0.25 2014-12-05 (PERLANCAR)
64
65 - No functional changes.
66
67 - Use new name of renamed module SHARYANTO::File::Flock ->
68 File::Flock::Retry.
69
70
71 0.24 2014-12-05 (PERLANCAR)
72
73 - These changes are done by TOSHIOITO++.
74
75 [BUG FIXES]
76
77 - Make sure lock is released even when write() or some hook dies.
78
79 - Fix rotation, rotation by period previously never delete old files.
80
81 [INCOMPATIBLE CHANGES]
82
83 - compress() method now avoids compressing files with the latest period.
84 Before, this method avoided compressing files with the period of
85 "_cur_period" private attribute, which was set by _open(). However,
86 "_cur_period" was not set if compress() was called without calling
87 write() beforehand. The new behavior is a little different from the
88 old, but it's the same in most cases.
89
90
91 0.23 2014-11-09 (PERLANCAR)
92
93 - compress() now unlinks uncompressed originals (this is the
94 original behavior before switching from using gzip utility to
95 IO::Compress::Gzip).
96
97
98 0.22 2014-09-01 (PERLANCAR)
99
100 - No functional changes.
101
102 - POD fixes.
103
104
105 0.21 2014-09-01 (PERLANCAR)
106
107 - Introduce hooks (currently:
108 hook_{before_write,after_create,before_rotate,after_rotate}).
109
110 - Add (ro) attribute methods: handle(), path().
111
112
113 0.20 2014-08-22 (SHARYANTO)
114
115 - Bug fix: Set timezone when testing, otherwise in UTC+12 (e.g.
116 Auckland) there is change of day [CT].
117
118
119 0.19 2014-08-20 (SHARYANTO)
120
121 - Fix bug in file_path() which caused current period log file to be
122 compressed [problem reported by Alceu Rodrigues de Freitas Junior].
123
124
125 0.18 2014-08-16 (SHARYANTO) - Happy 19th CPAN Day!
126
127 [ENHANCEMENTS]
128
129 - Replace the use of 'gzip' binary with IO::Compress::Gzip, to allow
130 this module to run in OS's other than Unix-like ones [Alceu Rodrigues
131 de Freitas Junior].
132
133 - Add tests for compression.
134
135 [BUG FIXES]
136
137 - Old period logs were never compressed.
138
139
140 0.17 2014-07-10 (SHARYANTO)
141
142 - Fix dep version (Test::Warnings 0.014, not 0.14).
143
144
145 0.16 2014-07-10 (SHARYANTO)
146
147 - Added support for 'binmode' (to set PerlIO layers, esp. encoding)
148 [thanks Norbert Buchmuller].
149
150
151 0.15 2014-05-17 (SHARYANTO)
152
153 - No functional changes.
154
155 - Replace File::Slurp with File::Slurp::Tiny.
156
157
158 0.14 2013-07-03 (SHARYANTO)
159
160 - No functional changes. Force fixed SHARYANTO::File::Flock version
161 (0.49).
162
163
164 0.13 2013-04-12 (SHARYANTO)
165
166 - No functional changes. Add FAQ item on why use FWR and the downside.
167
168
169 0.12 2013-04-12 (SHARYANTO)
170
171 - No functional changes. Update module name in POD and expand the
172 explanation on the difference between FWR & LDFR.
173
174
175 0.11 2012-12-28 (SHARYANTO)
176
177 - No functional changes. Tweak error message.
178
179
180 0.10 2012-12-28 (SHARYANTO)
181
182 [NEW FEATURES]
183
184 - Add buffering (attribute: buffer_size) to buffer messages during
185 temporary write() failure.
186
187
188 0.09 2012-12-28 (SHARYANTO)
189
190 - Make rotate pass under taint-mode.
191
192
193 0.08 2012-12-28 (SHARYANTO)
194
195 [BUG FIXES]
196
197 - Can now rotate on the first write() instead of on the second and
198 subsequent.
199
200
201 0.07 2012-12-27 (SHARYANTO)
202
203 - Avoid using Log::Any, because we are used as backend for
204 Log::Dispatch::FileWriteRotate (thus, a loop).
205
206
207 0.06 2012-12-27 (SHARYANTO)
208
209 - Set autoflush (to pass Log-Any-App09 tests).
210
211
212 0.05 2012-12-26 (SHARYANTO)
213
214 - No functional changes. Mention 'period' argument in POD.
215
216
217 0.04 2012-12-26 (SHARYANTO)
218
219 - A small fix in DESTROY().
220
221
222 0.03 2012-12-25 (SHARYANTO)
223
224 - No functional changes. Extract flocking routines to
225 SHARYANTO::File::Flock.
226
227
228 0.02 2012-12-22 (SHARYANTO)
229
230 - No functional changes. Additions/corrections for POD.
231
232
233 0.01 2012-12-21 (SHARYANTO)
234
235 - First release.