Debian Codegraph @

Changes

raw
1 Revision history for Log-Any
2
3 ** denotes an incompatible change
4
5 1.720 2026-04-25 12:58:08+02:00 Europe/Vienna
6
7 - This release contains some performance improvements. Thanks @XSven! [Github #116]
8
9 1.719 2026-03-16 08:53:34-05:00 America/Chicago
10
11 This release contains fixes for test failures and documentation.
12
13 [Fixed]
14
15 - Fixed t/proxy-with-stack-trace.t failing tests on Windows. Thanks @Akron!
16 [Github #104]
17 - Fixed requirement on Storable > 3.06 for Log::Any::Proxy::WithStackTrace.
18 Thanks @perlpunk! [Github #105]
19 - Fixed POD lists rendering horribly. Thanks @mikkoi! [Github #113]
20
21 1.718 2025-06-01 09:59:59-05:00 America/Chicago
22
23 [Fixed]
24
25 - Fixed Log::Any::Adapter::Multiplex not loading its child adapter
26 modules.
27
28 1.717 2023-08-17 10:52:21-05:00 America/Chicago
29
30 [Fixed]
31
32 - Fixed WithStackTrace proxy to remove arguments in-place instead of
33 always stringifying the exception object immediately. This means we
34 need to handle different exception objects differently, but it also
35 means a better log message. Thanks @larryl and @GrantStreetGroup for
36 submitting this fix! [Github #100]
37
38 1.716 2023-06-26 14:14:46-05:00 America/Chicago
39
40 [Added]
41
42 - Added a parameter to show stack trace arguments when using the
43 WithStackTrace proxy. Since these arguments may contain sensitive
44 information, they are now removed by default. Thanks @sam-ng and
45 @GrantStreetGroup for submitting this patch! [Github #97]
46
47 1.715 2023-05-04 13:09:22-05:00 America/Chicago
48
49 [Fixed]
50
51 - Fixed Multiplex adapter losing context details. Normally, the
52 Log::Any::Proxy joins all of the arguments passed in to a logging
53 method if the adapter it's using does not support structured data.
54 Multiplex supports structured data, but one of the adapters inside
55 may not. So, the Multiplex adapter must also perform this
56 concatenation to avoid losing those additional arguments.
57
58 Thanks @jrubinator and @GrantStreetGroup for discovering this bug
59 and providing the fix! [Github #95]
60
61 1.714 2023-03-20 11:48:30-05:00 America/Chicago
62
63 [Fixed]
64
65 - Fixed Syslog adaptor losing ident and facility information if
66 another library wrongly calls Sys::Syslog::closelog(). This is not
67 a perfect solution, but a perfect solution can only ever be to fix
68 the close that's calling closelog() :P
69
70 Thanks to Tom Christiansen and @GrantStreetGroup for reporting this
71 issue and providing the fix.
72
73 1.713 2022-12-12 12:44:52-06:00 America/Chicago
74
75 [Fixed]
76
77 - Fixed tests failing due to missing Devel::Stacktrace. This is an
78 optional module, so we do not explicitly depend on it. Thanks
79 @dbevans and @perlpunk for reporting this issue! (Github #93)
80
81 1.712 2022-12-09 11:05:10-06:00 America/Chicago
82
83 [Added]
84
85 - Added `Log::Any::Proxy::WithStackTrace` to provide a stack trace at
86 the caller site. Thanks @larryl and @GrantStreetGroup for providing
87 this feature!
88
89 [Other]
90
91 - Removed Travis, as they stopped supporting free Github repos :(
92
93 1.711 2022-11-22 11:28:01-06:00 America/Chicago
94
95 [Fixed]
96
97 - Fixed proxy not exposing 'category' attribute (#86). Thanks
98 @andrew-grechkin!
99 - Fixed not being able to get a proxy for the "root" category (empty
100 string) (#90). Thanks @XSven!
101
102 1.710 2021-08-02 10:11:33-05:00 America/Chicago
103
104 [Other]
105
106 - Removed explicit declaration of core dependencies to improve user
107 experience
108
109 1.709 2021-02-17 15:16:20-06:00 America/Chicago
110
111 [Added]
112
113 - Added "Log::Any->has_consumer" for the rare case where one needs
114 to know if a consumer has already been configured.
115
116 1.708 2020-01-12 22:56:43-05:00 America/New_York
117
118 [Added]
119
120 - Added 'Capture' adapter for capturing log messages in an array or
121 running an arbitrary callback. This makes it easier to test log
122 messages, collect messages from a certain scope for later display.
123 Thanks @nrdvana! [Github #77]
124
125 - Added Log::Any::Adapter 'get' class method to get an adapter for
126 a category. This allows bypassing the Proxy and using the Adapter
127 directly. Doing so breaks all the features enabled by a Proxy, and
128 so should only be used in special circumstances (definitely not in
129 CPAN modules). Thanks @nrdvana! [Github #78]
130
131 - Added 'Multiplex' adapter for directing log output to one or more
132 Log::Any adapters. This allows, for example, basic logging to
133 Stderr and logging to a remote Syslogd or Elastic. Thanks
134 @jrubinator and @GrantStreetGroup for contributing this!
135 [Github #79, Github #16]
136
137 1.707 2018-08-01 22:55:01-05:00 America/Chicago
138
139 [Fixed]
140
141 - The local context hash (`$log->context`) and the log hash
142 (`$log->$level( $message, $hash )`) now get merged correctly,
143 combining contextual logging and structured logging. Thanks
144 @mephinet! [Github #76] [Github #73]
145
146 1.706 2018-07-06 20:20:00-05:00 America/Chicago
147
148 [Fixed]
149
150 - The File, Stderr, and Stdout adapters now correctly allow being
151 set to the "emergency" log level threshold. Previously, trying to
152 only allow "emergency" log lines would result in all logs being
153 written (and a warning about an invalid log level being set).
154 Thanks @alabamapaul! [Github #74]
155
156 1.705 2018-01-17 13:49:22-06:00 America/Chicago
157
158 [Fixed]
159
160 - Fixed the `binmode` attribute of the File adapter not working
161 properly. Thanks @MadLord80! [Github #72]
162
163 1.704 2017-12-17 18:13:33-06:00 America/Chicago
164
165 [Fixed]
166
167 - Fixed some invalid POD and added a test to ensure POD validity
168 before release. Thanks @shlomif! [Github #67][Github #68]
169
170 - Improved performance when no work needed to be done. Thanks
171 @mephinet! [Github #70]
172
173 1.703 2017-11-29 10:56:17-06:00 America/Chicago
174
175 [Fixed]
176
177 - Fixed log format methods (errorf, warnf, infof, etc...) not
178 returning the formatted message sometimes. Thanks @vshekun!
179 [Github #64]
180
181 1.702 2017-11-28 15:18:40-06:00 America/Chicago
182
183 [Fixed]
184
185 - Fixed log output disappearing when the `default_adapter` is set.
186 Thanks @dallaylaen! [Github #65]
187
188 1.701 2017-10-02 14:36:51-05:00 America/Chicago
189
190 [Fixed]
191
192 - Fixed more method aliases in Log::Any::Adapter::Syslog that were
193 mapped to invalid syslog priorities. Thanks @legaultp for the
194 patch!
195
196 1.700 2017-09-28 16:59:22-05:00 America/Chicago
197
198 [Fixed]
199
200 - Fixed version of Log::Any::Adapter::Syslog so that installing it
201 will also install the rest of Log-Any.
202
203 - Fixed method aliasing in Log::Any::Adapter::Syslog for "error"
204 log method. Thanks @legaultp for the patch!
205
206 1.051 2017-08-06 20:41:53-05:00 America/Chicago (TRIAL RELEASE)
207
208 [Fixed]
209
210 - LOG_ANY_DEFAULT_ADAPTER now correctly logs to the given adapter.
211
212 Previously, if no other adapter was set, Log::Any used its
213 default, super-fast "Null" proxy that simply drops all messages
214 without checking adapters. Now Log::Any will correctly detect the
215 environment variable and create the correct, normal proxy object.
216
217 Thanks @tm604 for the report and @mephinet for the patch!
218
219 1.050 2017-08-03 22:28:37-05:00 America/Chicago (TRIAL RELEASE)
220
221 [Added]
222
223 - Added structured logging to easily log single hash references in
224 a parsable format. Thanks @mephinet!
225
226 - Added contextual logging to attach information to log messages
227 based on the current context.
228
229 For example, all log messages being generated by a particular HTTP
230 request could be logged with the URL, even if they're from a part
231 of the application that doesn't know what HTTP is.
232
233 This is very similar to Log::Log4perl's Mapped Diagnostic Context.
234
235 Thanks @mephinet!
236
237 1.049 2017-03-28 16:02:10-05:00 America/Chicago
238
239 [Fixed]
240
241 - Fixed failing tests on Windows because of path separator
242 interpolation. Thanks @nanis [Github #56]
243
244 - Added explicit core dependency on Sys::Syslog in case of Perls
245 with non-standard core libraries. Thanks @nanis [Github #57]
246
247 1.048 2017-03-27 15:16:12-05:00 America/Chicago
248
249 - No changes since 1.047 trial release
250
251 1.047 2017-03-22 20:22:47-05:00 America/Chicago (TRIAL RELEASE)
252
253 [Fixed]
254
255 - Fixed backwards-compatibility with users using the Unix::Syslog
256 macros in Log::Any::Adapter::Syslog. This requires that the user
257 have Unix::Syslog installed (which Log::Any does not explicitly
258 depend on).
259
260 - Log level aliases are now case-insensitive to match the regular
261 log levels. Prior to this, "WARNING", "Warning", and "warning"
262 would all work, but "WARN", and "Warn" would not, only "warn".
263 Thanks to @0x62ash for reporting this issue. [Github #55]
264
265 - Invalid log levels for the File, Stderr, and Stdout adapters now
266 result in a warning, and the default level of "trace" is used.
267 Previously, no warning would be issued and no logs would be
268 generated. Thanks to @0x62ash for reporting this issue. [Github
269 #55]
270
271 1.046 2017-01-11 21:22:57-06:00 America/Chicago (TRIAL RELEASE)
272
273 [Added]
274
275 - The Syslog adapter is now part of the core distribution, since it
276 relies only on core Perl modules.
277
278 1.045 2016-11-11 21:52:46-06:00 America/Chicago
279
280 - No changes from previous (trial) release 1.044
281
282 1.044 2016-11-06 15:30:35-06:00 America/Chicago (TRIAL RELEASE)
283
284 [Fixed]
285
286 - Imported log object can now be called anything instead of just
287 `$log`. This means `use Log::Any '$LOG'` or `use Log::Any '$foo'`
288 now work.
289
290 1.043 2016-11-03 21:31:18-05:00 America/Chicago (TRIAL RELEASE)
291
292 [Fixed]
293
294 - Objects that overload stringification are now stringified
295 correctly (instead of run through Data::Dumper). Thanks @mephinet!
296
297 1.042 2016-08-26 23:37:33-05:00 America/Chicago
298
299 [Added]
300
301 - Default adapters can now be configured with arguments (thanks
302 @bjakubski!)
303
304 1.041 2016-08-18 00:00:10-05:00 America/Chicago (TRIAL RELEASE)
305
306 [Added]
307
308 - Logging methods now return the formatted log string so that it can
309 be used in a `die` or `warn` call.
310
311 [Changed]
312
313 - A new default log proxy (Log::Any::Proxy::Null) is used when there
314 are no adapters configured (and so no place for logs to go). This
315 proxy does no processing and is about 1000% percent faster on my
316 laptop.
317
318 [Fixed]
319
320 - Suppress 'redundant argument' warnings if too many arguments are
321 given to a log formatting string.
322
323 1.040 2016-02-24 17:47:00-05:00 America/New_York
324
325 [Fixed]
326
327 - Fixed duplicated documentation sections.
328
329 1.038 2016-02-10 14:15:31-07:00 America/Mazatlan
330
331 - No changes from 1.037
332
333 1.037 2016-02-05 20:22:34-05:00 America/New_York (TRIAL RELEASE)
334
335 [Fixed]
336
337 - Fixed t/filescreen.t Unicode string tests to use a backwards
338 compatible form. Should fix tests before 5.16.
339
340 1.035 2016-02-04 14:47:20-05:00 America/New_York (TRIAL RELEASE)
341
342 [Changed]
343
344 - The default formatter now replaces a code reference argument with
345 the results of calling the code reference ONLY when it is the first
346 argument (in place of a format string). Code references in
347 subsequent arguments (to sprintf) are not executed, as this would
348 break backwards compatibility.
349
350 [Documented]
351
352 - Noted that repeatedly calling 'set' to set an adapter without calling
353 'remove' or using the 'lexically' feature will leak memory.
354
355 1.033 2016-02-03 10:32:57-05:00 America/New_York (TRIAL RELEASE)
356
357 [Added]
358
359 - The default formatter now expands code references. If the first
360 argument is a code reference, it is expanded and returned. If an
361 argument to "sprintf" style formatting is a code reference, it is
362 expanded.
363
364 [Changed]
365
366 - The File adapter now opens files with the ":utf8" layer. It also
367 takes a 'binmode' attribute to change the default.
368
369 [Fixed]
370
371 - does_not_contain_ok test adapter function now gives proper
372 diagnostic message
373
374 - all diagnostic messages that output the captured log now
375 correctly dump the log with pretty formatting
376
377 [Documented]
378
379 - documented the 'proxy_class' argument to `get_logger`
380
381 [~Internal~]
382
383 - Data::Dumper is loaded lazily, to reduce module load times
384 for programs that don't need it.
385
386 1.032 2015-03-26 17:23:37-04:00 America/New_York
387
388 - no changes from 1.031
389
390 1.031 2015-03-26 06:08:17-04:00 America/New_York (TRIAL RELEASE)
391
392 [Fixed]
393
394 - Log::Any::Adapter::Test passed through all constructor arguments,
395 which could be fatal when mocking adapters without all key-value
396 pairs (like Log::Any::Adapter::File); now this only passes through
397 the category and ignores other parameters when used as an
398 adapter class override.
399
400 1.03 2015-01-01 22:39:41-05:00 America/New_York
401
402 [Changed]
403
404 - Log::Any::Proxy concatenates arguments to basic logging functions
405 with a space character before passing them to adapters as a single
406 string. This ensures consistency across adapters that handle
407 multiple arguments differently.
408
409 1.02 2014-12-28 07:06:49-05:00 America/New_York
410
411 [Fixed]
412
413 - Some adapters relied on Log::Any::Adapter::Util also loading
414 Log::Any so this behavior has been restored.
415
416 1.01 2014-12-26 22:25:13-05:00 America/New_York
417
418 [Fixed]
419
420 - 'numeric_level' was not exported properly from
421 Log::Any::Adapter::Util
422
423 1.00 2014-12-25 22:04:13-05:00 America/New_York
424
425 [Added]
426
427 - Logging now goes via a Log::Any::Proxy object instead of directly to
428 an adapter. This allows easy customization of the message production.
429
430 - File, Stdout, and Stderr adapters now support a minimum
431 log level parameter.
432
433 [Changed]
434
435 - Removed dead code from Log::Any::Adapter::Base; particularly this
436 was the formatting code, since this is now handled by
437 Log::Any::Proxy.
438
439 [Fixed]
440
441 - File will flock the handle when writing (if flock is avaiable).
442
443 - Won't die if adapters aren't loadable modules as long as they
444 provide a constructor. This allows using private adapters
445 defined in another file.
446
447 [Documented]
448
449 - Revised docs for creating adapters
450
451 - Fixed typos and improved docs for Log::Any::Adapter::Util; removed
452 stub docs for modules that didn't need it.
453
454 [Deprecated]
455
456 - Deprecated some methods in Log::Any::Adapter::Util
457
458 [Internal]
459
460 - Merged Log-Any and Log-Any-Adapter distributions; reduces code
461 duplication and ensures Log::Any and adapter framework stay in sync
462
463 - Eliminates all non-core dependencies (as of Perl 5.8.1), including
464 Capture::Tiny, Devel::GlobalDestruction and Guard
465
466 0.92 2014-12-15 07:12:38-05:00 America/New_York (TRIAL RELEASE)
467
468 0.91 2014-12-14 22:13:09-05:00 America/New_York (TRIAL RELEASE)
469
470 0.90 2014-12-12 17:08:22-05:00 America/New_York (TRIAL RELEASE)
471
472 0.15 Apr 10, 2013
473
474 * Fixes
475 - Hide 'package Log::Any::Adapter' from PAUSE/Module::Metadata - miyagawa
476
477 0.14 Aug 31, 2011
478
479 * Fixes
480 - Fix version number in Log/Any.pm - Stephen Thirlwall
481
482 0.13 Aug 2, 2011
483
484 * Fixes
485 - Fix typo in lib/Log/Any/Adapter/Test.pm - RT #69850 - Stephen Thirlwall
486
487 0.12 Mar 23, 2011
488
489 * Fixes
490 - Return false from null adapter is_xxx methods - RT #64164 - Chip Salzenberg
491 - Eliminate 'subroutine redefined' warning in case Log::Any::Adapter loaded before
492 Log::Any::Test
493
494 * Implementation
495 - Migrate to Dist::Zilla
496
497 0.11 Feb 12, 2010
498
499 * Improvements
500 - Add trace level - suggested by Szymon Swierkosz
501
502 0.10 Jan 5, 2010
503
504 * Fixes
505 - Fix Log::Any::Core to support references in printf-style methods
506
507 0.09 Jan 5, 2010
508
509 * Improvements
510 - Convert undef to string "<undef>" in printf-style methods - RT #53398, suggested by Steven Haryanto
511
512 0.08 Dec 15, 2009
513
514 * Fixes
515 - Fix Log::Any::Test to support full logging API (aliases and printf methods)
516
517 0.07 Dec 7, 2009
518
519 * Implementation
520 - Depend on Test::Simple rather than Test::More
521
522 * Improvements
523 - Add Log::Any::Test, to aid in testing code that uses Log::Any
524
525 0.06 Oct 31, 2009
526
527 * Fixes
528 - Implement Log::Any->set_adapter again for backward compatibility with 0.04 and earlier
529
530 0.05 Oct 27, 2009
531
532 * Implementation
533 - ** Strip Log::Any down to a relative minimum, so as to keep it stable and
534 unchanging. Move everything else to Log::Any::Adapter.
535
536 0.04 Sep 3, 2009
537
538 * Fixes
539 - Replace Test::Deep::cmp_deeply with an internal version to avoid Test::Deep dependency
540
541 0.03 Jul 17, 2009
542
543 * Improvements
544 - Eliminated extra '::Log' from adapter names, e.g. Log::Any::Adapter::Log::Dispatch is
545 now Log::Any::Adapter::Dispatch. The long name was properly descriptive but was making
546 me wince every time.
547
548 0.02 Jul 14, 2009
549
550 * Fixes
551 - Fix logging aliases like warn => warning
552
553 * Implementation
554 - Eliminate unnecessary Test/InternalOnly.pm class
555 - Precompute alias and method lists like Log::Any->logging_methods
556
557 0.01 Jul 11, 2009
558
559 - Initial version
560