| 1 |
2.71 2023-04-05 |
| 2 |
|
| 3 |
- The docs for the Screen output were never updated after the changes in 2.50, |
| 4 |
when it reverted back to using STDOUT or STDERR directly. This led to a lot |
| 5 |
of the docs being confusing and wrong. Reported by @mauke. GH #65, #66, and |
| 6 |
#67. |
| 7 |
|
| 8 |
|
| 9 |
2.70 2020-07-20 |
| 10 |
|
| 11 |
- Make locking test wait longer before giving up. Some filesystems (like NFS) |
| 12 |
can be quite slow to lock files. Fixed by Joelle Maslak. GH #61. |
| 13 |
|
| 14 |
|
| 15 |
2.69 2019-10-25 |
| 16 |
|
| 17 |
- Fix a warning Log::Dispatch::Email::Mailsender (GH #57). Fixed by Graham |
| 18 |
Knop. 58 #GH. |
| 19 |
|
| 20 |
|
| 21 |
2.68 2018-08-21 |
| 22 |
|
| 23 |
- Changed some internals to avoid re-validating the same sets of parameters |
| 24 |
repeatedly, which should offer a small speed bost. Based on PR #54 from |
| 25 |
Sergey Leschenko. |
| 26 |
|
| 27 |
|
| 28 |
2.67 2017-09-24 |
| 29 |
|
| 30 |
- Added a lazy_open option to the File output. This delays opening the file |
| 31 |
until the first time a log message is written to it. Implemented by Slaven |
| 32 |
Rezić. GH #50. |
| 33 |
|
| 34 |
|
| 35 |
2.66 2017-08-14 |
| 36 |
|
| 37 |
- Fixed the ApacheLog output, which was broken in 2.60. Fixed by Michael |
| 38 |
Schout. GitHub #48 and #49. |
| 39 |
|
| 40 |
|
| 41 |
2.65 2017-06-11 |
| 42 |
|
| 43 |
- When Log::Dispatch::File is asked to chmod a file and that fails, show the |
| 44 |
requested permissions in octal. Patch by Carsten Grohmann. GitHub #46. |
| 45 |
|
| 46 |
|
| 47 |
2.64 2017-02-25 (TRIAL RELEASE) |
| 48 |
|
| 49 |
- Improve level validation and canonicalization logic. Patch by Kerin Millar, |
| 50 |
minor changes and tests by Kivanc Yazan. Github #42. |
| 51 |
|
| 52 |
- The log_and_die and log_and_croak methods are now identical, as we set |
| 53 |
@CARP_NOT for Log::Dispatch to exclude the Log::Dispatch package. You can |
| 54 |
still explicitly pass carp_level to log_and_croak. |
| 55 |
|
| 56 |
|
| 57 |
2.63 2017-02-19 |
| 58 |
|
| 59 |
- Updated the conflicting version for Log::Dispatch::File::Stamped in |
| 60 |
metadata (due to changes in handling of close_after_write). Patch by Karen |
| 61 |
Etheridge. GitHub #41. |
| 62 |
|
| 63 |
|
| 64 |
2.62 2017-02-13 |
| 65 |
|
| 66 |
- Devel::Confess was accidentally being loaded in Log::Dispatch. Fixed by |
| 67 |
Karen Etheridge. GitHub #39. |
| 68 |
|
| 69 |
|
| 70 |
2.61 2017-02-13 |
| 71 |
|
| 72 |
- The 2.60 release would throw an exception if the logged message was |
| 73 |
empty. While this makes sense, it also breaks backwards compatibility, so it |
| 74 |
has been reverted. Reported by Greg Oschwald. GitHub #38. |
| 75 |
|
| 76 |
- The 2.60 release would throw an exception if you tried to create a Syslog |
| 77 |
output where the ident was an empty string. Reported by Greg |
| 78 |
Oschwald. GitHub #38. |
| 79 |
|
| 80 |
|
| 81 |
2.60 2017-02-12 |
| 82 |
|
| 83 |
- Same as 2.59 ... Switched from Params::Validate to |
| 84 |
Params::ValidationCompiler. This should speed up constructors and logging a |
| 85 |
little bit. This also allows Log::Dispatch::File to accept things like |
| 86 |
Path::Tiny objects for filenames. Reported by Joel Berger. GitHub #36. |
| 87 |
|
| 88 |
|
| 89 |
2.59 2017-02-05 (TRIAL RELEASE) |
| 90 |
|
| 91 |
- Switched from Params::Validate to Params::ValidationCompiler. This should |
| 92 |
speed up constructors and logging a little bit. This also allows |
| 93 |
Log::Dispatch::File to accept things like Path::Tiny objects for |
| 94 |
filenames. Reported by Joel Berger. GitHub #36. |
| 95 |
|
| 96 |
|
| 97 |
2.58 2016-11-13 |
| 98 |
|
| 99 |
- Switched from RT to the GitHub issue tracker. |
| 100 |
|
| 101 |
|
| 102 |
2.57 2016-08-13 |
| 103 |
|
| 104 |
- Added a remove_callback method to the main Log::Dispatch object as well as |
| 105 |
all outputs. Patch by Doug Bell. GitHub #22. |
| 106 |
|
| 107 |
|
| 108 |
2.56 2016-05-06 |
| 109 |
|
| 110 |
- Cleaned up some cruft in Pod. Some sections ended up in there twice. |
| 111 |
|
| 112 |
|
| 113 |
2.55 2016-05-06 |
| 114 |
|
| 115 |
- The values of $@, $!, and $? are protected in various cases where they could |
| 116 |
end up being changed by logging code. Patch by Salvador Fandiño. GitHub #18. |
| 117 |
|
| 118 |
- Treat MSYS2 like Cygwin in tests. Fix by Graham Ollis. GitHub #19. |
| 119 |
|
| 120 |
|
| 121 |
2.54 2016-01-18 |
| 122 |
|
| 123 |
- Fixed File::Locked even more. While some deadlocks were eliminated, there |
| 124 |
was still an issue when a Log::Dispatch object was created in a parent |
| 125 |
process and then recreated in the children. If the close_after_write |
| 126 |
parameter was false, then there would be a deadlock. |
| 127 |
|
| 128 |
- Made Syslog work on a threaded Perl when the threads module was not |
| 129 |
explicitly loaded. Fixed by Konrad Bucheli. GitHub #13. |
| 130 |
|
| 131 |
- The log() method now accepts a level parameter as an integer. Fixed by Steve |
| 132 |
Bertrand. GitHub #15. |
| 133 |
|
| 134 |
|
| 135 |
2.53 2016-01-14 |
| 136 |
|
| 137 |
- Actually fix File::Locked, this time with some actual tests. |
| 138 |
|
| 139 |
|
| 140 |
2.52 2016-01-13 |
| 141 |
|
| 142 |
- Make File::Locked output do an explicit unlock if the close_after_write |
| 143 |
option is not set. Without this it would open the file once in each process, |
| 144 |
attempting to get a lock at open time, pretty much guaranteeing a deadlock |
| 145 |
in a multiprocess environment. Now it should work sanely whether |
| 146 |
close_after_write is true or not. |
| 147 |
|
| 148 |
|
| 149 |
2.51 2015-09-19 |
| 150 |
|
| 151 |
- Fixed t/08-screen.t on Windows platforms. |
| 152 |
|
| 153 |
|
| 154 |
2.50 2015-09-02 |
| 155 |
|
| 156 |
- Changed how the Screen output handles UTF-8 data once more. The Screen |
| 157 |
module has gone back to printing output directly to the global STDOUT and |
| 158 |
STDERR handles. The previous changes broke the tests for several modules, |
| 159 |
including Log::Dispatch::Config. This change should fix them. |
| 160 |
|
| 161 |
|
| 162 |
2.49 2015-08-21 |
| 163 |
|
| 164 |
- The Screen output now enables autoflush on the handle it uses to send output |
| 165 |
to STDOUT or STDERR every time it sends a message. This does not affect the |
| 166 |
global STDOUT or STDERR, as the Screen module makes its own handle for |
| 167 |
output. This fixes a bug reported by Karen Etheridge that caused this module |
| 168 |
to not play nicely with Capture::Tiny in some cases. RT #106605. |
| 169 |
|
| 170 |
|
| 171 |
2.48 2015-08-07 |
| 172 |
|
| 173 |
- Fixed (I hope) tests that were added in the last release that fail on |
| 174 |
Windows. |
| 175 |
|
| 176 |
|
| 177 |
2.47 2015-08-06 |
| 178 |
|
| 179 |
- Really, really make per-thread locking work. Depending on when threads and |
| 180 |
threads::shared were loaded, you might get an error like 'Type of arg 1 to |
| 181 |
threads::shared::share must be one of $@% at .../Log/Dispatch/Syslog.pm line |
| 182 |
67, near "$thread_lock)"'. Reported by David Schweikert. |
| 183 |
|
| 184 |
- Added support for auth-related parameters and replyto to |
| 185 |
Log::Dispatch::Email::MailSender. Implemented by Rohan Carly. Based on |
| 186 |
GitHub #10. |
| 187 |
|
| 188 |
- Added a utf8 flag for Log::Dispatch::Screen. If this is true, then it sets |
| 189 |
the ":encoding(UTF-8)" flag on the handle it uses for output (without |
| 190 |
affecting STDOUT or STDERR elsewhere). Suggested by Ivan Baidakou. |
| 191 |
|
| 192 |
|
| 193 |
2.46 2015-08-05 |
| 194 |
|
| 195 |
- Really make the per-thread locking in the Syslog output work. Based on a |
| 196 |
patch by David Schweikert. GitHub #9. |
| 197 |
|
| 198 |
|
| 199 |
2.45 2015-06-14 |
| 200 |
|
| 201 |
- Don't include threads and threads::shared in list of dependencies. This is |
| 202 |
only needed for Log::Dispatch::Syslog and is loaded at runtime as needed |
| 203 |
(which has its own issues but ...). Reported by Kent Fredric. RT #103392. |
| 204 |
|
| 205 |
|
| 206 |
2.44 2014-10-18 |
| 207 |
|
| 208 |
- The fix for a buffered email output in the last release introduced a bug |
| 209 |
with _non-buffered_ email outputs. This would cause a fatal error during |
| 210 |
global destruction when the DESTROY method was called. Reported by Christ |
| 211 |
Hutchinson. RT #99474. |
| 212 |
|
| 213 |
|
| 214 |
2.43 2014-10-05 |
| 215 |
|
| 216 |
- Fixed the thread locking in Log::Dispatch::Syslog (I hope). The previous |
| 217 |
version caused Perl to crash when per-thread locking was enabled. Note that |
| 218 |
I don't use threads so I haven't tested this. Patch by Sergio Fernández |
| 219 |
Muñoz. RT # 99208. |
| 220 |
|
| 221 |
- If a buffered email output is being destroyed during global destruction and |
| 222 |
still has messages in the buffer, we warn and do not attempt to send the |
| 223 |
messages. During global destruction, the package we use to send email may |
| 224 |
already be destroyed, leading to weird errors when we try to use |
| 225 |
it. Reported by Mark Overmeer. RT #97733. |
| 226 |
|
| 227 |
- In 2.42 I added the ability to pass a hashref for the socket parameter given |
| 228 |
to Log::Dispatch::Syslog, but I forgot to mention this here. This is |
| 229 |
necessary to support remote logging. Patch by David Coppit. RT #93045. |
| 230 |
|
| 231 |
2.42 2014-08-12 |
| 232 |
|
| 233 |
- Added a Log::Dispatch->clone() method. This returns shallow clone. The |
| 234 |
outputs and callbacks are shared, but changes to outputs and callbacks in |
| 235 |
the clone do not affect the original, or vice versa. |
| 236 |
|
| 237 |
- Added Log::Dispatch->outputs() method. This returns all the output objects |
| 238 |
in a dispatch object. |
| 239 |
|
| 240 |
- Added Log::Dispatch->callbacks() method. This returns all the callback subs |
| 241 |
in a dispatch object. |
| 242 |
|
| 243 |
- The Syslog output now calls Sys::Syslog::setlogsock() every time a message |
| 244 |
is logged, since something else could have called it in between logging two |
| 245 |
messages. |
| 246 |
|
| 247 |
- Added a lock parameter to the Syslog output. If this is true, then logging |
| 248 |
is done in the scope of a per-thread lock. Reported by Cedric Carree and |
| 249 |
Franck Youssef. RT #67988 and #85013. |
| 250 |
|
| 251 |
- Replaced Class::Load with Module::Runtime. |
| 252 |
|
| 253 |
|
| 254 |
2.41 2013-07-22 |
| 255 |
|
| 256 |
- An error is now thrown if you call Log::Dispatch->log without a |
| 257 |
level. Previously you'd just get a warning and then execution would continue |
| 258 |
(without logging anything). Patch by Ross Attrill. RT #87133. |
| 259 |
|
| 260 |
|
| 261 |
2.40 2013-07-01 |
| 262 |
|
| 263 |
- Added a conflict entry for older Log::Dispatch::File::Stamped to the |
| 264 |
metadata. Patch by Karen Etheridge. RT #86215. |
| 265 |
|
| 266 |
|
| 267 |
2.39 2013-04-21 |
| 268 |
|
| 269 |
- You can now pass a port option to the MailSender output. Patch by Whitney |
| 270 |
Jackson. |
| 271 |
|
| 272 |
|
| 273 |
2.38 2013-04-14 |
| 274 |
|
| 275 |
- Fix test that used undeclared prereqs so it does not do that. |
| 276 |
|
| 277 |
|
| 278 |
2.37 2013-04-14 |
| 279 |
|
| 280 |
- Moved Log::Dispatch::File constructor parameter validation moved to |
| 281 |
_basic_init() to facilitate proper subclassing. Patch by ether. RT #84545. |
| 282 |
|
| 283 |
|
| 284 |
2.36 2013-04-08 |
| 285 |
|
| 286 |
- Added a very simple Log::Dispatch::Code output. This lets you log to a |
| 287 |
subroutine reference. |
| 288 |
|
| 289 |
- Added Sys::Syslog 0.25 as a prereq. This is a temporary fix to the problem |
| 290 |
of Log::Dispatch shipping lots of output modules with undeclared prereqs (so |
| 291 |
as not to require mod_perl, four email sending modules, etc.). In the future |
| 292 |
Log::Dispatch will be split into a core distro and a set of distros, one for |
| 293 |
each output that has prereqs. Reported by Michael Schwern. RT #84481. |
| 294 |
|
| 295 |
|
| 296 |
2.35 2013-01-20 |
| 297 |
|
| 298 |
- Added a big warning about the potential for deadlocks in the documentation |
| 299 |
for Log::Dispatch::File::Locked. Patch by ether. |
| 300 |
|
| 301 |
|
| 302 |
2.34 2012-12-08 |
| 303 |
|
| 304 |
- Fix a test bug that caused the tests to fail on all Perls before 5.16.0. |
| 305 |
|
| 306 |
|
| 307 |
2.33 2012-12-07 |
| 308 |
|
| 309 |
- Added a 'syswrite' option to Log::Dispatch::File which causes all writes to |
| 310 |
use syswrite (so they're atomic). Patched by ether. RT #81669. |
| 311 |
|
| 312 |
- The File output's DESTROY method now checks to see if it's associated handle |
| 313 |
is open before trying to close it. Patch by Jeffrey Thalhammer. |
| 314 |
|
| 315 |
|
| 316 |
2.32 2012-05-24 |
| 317 |
|
| 318 |
- Fix a test failure - test failed if you had 0.16 <= Sys::Syslog < 0.25 |
| 319 |
installed. |
| 320 |
|
| 321 |
- Added a kludgey test failure fix for failure on Cygwin. Patch by Christian |
| 322 |
Carey. RT #77364. |
| 323 |
|
| 324 |
|
| 325 |
2.31 2012-05-21 |
| 326 |
|
| 327 |
- Added missing prereq - Class::Load. |
| 328 |
|
| 329 |
|
| 330 |
2.30 2012-05-20 |
| 331 |
|
| 332 |
- Remove Sys::Syslog as a prereq, since you can use this distro perfectly well |
| 333 |
without it. Fixes RT #52065. |
| 334 |
|
| 335 |
- You can now pass a subroutine reference to the sugar methods like |
| 336 |
$dispatch->debug() and friends. Requested by Jeffrey Thalhammer. RT #77308. |
| 337 |
|
| 338 |
- Calling sugar methods like $dispatch->warn or $dispatch->crit did not |
| 339 |
normalize the log level, so the level would be passed to the outputs as |
| 340 |
"warn", not "warning". Reported by Karen Etheridge. RT #77203. |
| 341 |
|
| 342 |
|
| 343 |
2.29 2011-03-18 |
| 344 |
|
| 345 |
- Add is_$level methods for compatibility with Log::Contextual. Patch by frew. |
| 346 |
|
| 347 |
|
| 348 |
2.28 2010-12-13 |
| 349 |
|
| 350 |
- The Log::Dispatch module still had version 2.26 in the last |
| 351 |
release. Reported by Øyvind Skaar. RT #63876. |
| 352 |
|
| 353 |
|
| 354 |
2.27 2010-10-16 |
| 355 |
|
| 356 |
- Fix docs on handling of arrays passed to ->debug, ->error, etc. Requested by |
| 357 |
Andrew Hanenkamp. RT #61400. |
| 358 |
|
| 359 |
- Allow an arrayref for the Syslog socket option. Requested by Paul |
| 360 |
Bennett. RT #57631. |
| 361 |
|
| 362 |
- License is now Artistic 2.0. |
| 363 |
|
| 364 |
|
| 365 |
2.26 2009-09-22 |
| 366 |
|
| 367 |
- Doc updates. The 2.23 constructor API was still shown in all the output |
| 368 |
subclasses. Fixed by Jon Swartz. |
| 369 |
|
| 370 |
|
| 371 |
2.25 2009-09-15 |
| 372 |
|
| 373 |
- Added a workaround for a weird tainting issue with Params::Validate. This |
| 374 |
caused a taint exception when a Log::Dispatch::Syslog was created under |
| 375 |
taint mode. Note that there is still a problem in Params::Validate itself, |
| 376 |
this is just a hack. |
| 377 |
|
| 378 |
|
| 379 |
2.24 2009-09-13 |
| 380 |
|
| 381 |
- Simplified new constructor API (the 2.23 API is still silently supported but |
| 382 |
not documented): |
| 383 |
|
| 384 |
Log::Dispatch->new( outputs => [ [ 'File', ... ], |
| 385 |
[ 'Screen', ... ], |
| 386 |
] |
| 387 |
); |
| 388 |
|
| 389 |
Implemented by Jon Swartz. |
| 390 |
|
| 391 |
- All of the mail sending modules now warn unconditionally if sending mail |
| 392 |
fails. This removes the incorrect use of warnings::enabled() in some |
| 393 |
modules. RT #43516. |
| 394 |
|
| 395 |
|
| 396 |
2.23 2009-09-12 |
| 397 |
|
| 398 |
- New constructor API that simplifies creating your Log::Dispatch object. |
| 399 |
Implemented by Jon Swartz. |
| 400 |
|
| 401 |
- Made name parameter optional. We now auto-generate a unique name if one is |
| 402 |
not given. Implemented by Jon Swartz. |
| 403 |
|
| 404 |
- Added a newline parameter that causes a newline to be added to each message, |
| 405 |
and updated the documentation regarding newlines. Implemented by Jon Swartz. |
| 406 |
|
| 407 |
- Removed repetitive boilerplate documentation from each output |
| 408 |
class. Implemented by Jon Swartz. |
| 409 |
|
| 410 |
- The level_names and level_numbers used internally are now computed once and |
| 411 |
shared between output objects. Implemented by Jon Swartz. |
| 412 |
|
| 413 |
- Updated repo url - now at http://hg.urth.org/hg/Log-Dispatch |
| 414 |
|
| 415 |
- Explicitly depend on Sys::Syslog 0.16. |
| 416 |
|
| 417 |
- Added warn as a synonym for warning. RT #44821. Requested by Dylan Martin. |
| 418 |
|
| 419 |
- Added an add_callback method to Log::Dispatch and |
| 420 |
Log::Dispatch::Output. This lets you add a new formatting callback after an |
| 421 |
object is created. Based on a patch from Ricardo Signes. RT #48283. |
| 422 |
|
| 423 |
- The Log::Dispatch docs mistakenly told you to provide a log() method when |
| 424 |
creating a new output class. RT #40561. |
| 425 |
|
| 426 |
- Made all modules have the same version as Log::Dispatch itself. |
| 427 |
|
| 428 |
|
| 429 |
2.22 2008-11-11 |
| 430 |
|
| 431 |
- Fixed a bug where Log::Dispatch::Email would die when it tried to |
| 432 |
log under taint mode. Patch by Neil Hemingway. RT #40042. |
| 433 |
|
| 434 |
- Fixed a misuse of warnings::enabled(). Reported by Darian |
| 435 |
Patrick. RT #39784. |
| 436 |
|
| 437 |
- Syslog logging now requires Sys::Syslog 0.16+. |
| 438 |
|
| 439 |
- If you don't pass a socket argument to Log::Dispatch::Syslog, it |
| 440 |
does not call Sys::Syslog::setlogsock(), which is the preferred |
| 441 |
option for portability. |
| 442 |
|
| 443 |
* If any of the syslog calls die, this is trapped and the error is |
| 444 |
output as a warning if warnings are on. This is mostly a workaround |
| 445 |
for Sys::Sylog not handling utf-8. RT #35270 & #37397. |
| 446 |
|
| 447 |
This isn't backwards-compatible, but it's probably wrong for the |
| 448 |
logging code to die because it can't log (even though some other |
| 449 |
output modules still do). |
| 450 |
|
| 451 |
|
| 452 |
2.21 2008-02-06 |
| 453 |
|
| 454 |
- Added log_and_die() and log_and_croak() methods. Patch by Yuval |
| 455 |
Kogman. |
| 456 |
|
| 457 |
|
| 458 |
2.20 2007-11-02 |
| 459 |
|
| 460 |
- One of the tests failed on Perl 5.6.x. Thanks to Slaven Rezic for |
| 461 |
the report. |
| 462 |
|
| 463 |
|
| 464 |
2.19 2007-11-01 |
| 465 |
|
| 466 |
- Switched to providing a traditional Makefile.PL as well as a |
| 467 |
Build.PL file. RT #27208. |
| 468 |
|
| 469 |
- When permissions are specified for a Log::Dispatch::File object, |
| 470 |
don't try to chmod the file unless the permissions of the file |
| 471 |
differ from what the file already has. Based on a patch by Kevin. RT |
| 472 |
#28151. |
| 473 |
|
| 474 |
- Require at least Perl 5.6.0. |
| 475 |
|
| 476 |
- Remove the tests for the email sending and exit codes, since the |
| 477 |
test had a heisenbug I could not understand. I _think_ the code in |
| 478 |
the email modules is correct, but the test isn't proving anything. |
| 479 |
|
| 480 |
- Added a binmode parameter for Log::Dispatch::File. Based on a patch |
| 481 |
by Angelo. RT #26063. |
| 482 |
|
| 483 |
|
| 484 |
2.18 2007-05-12 |
| 485 |
|
| 486 |
- Log::Dispatch::ApacheLog should really now work under mod_perl 2, as |
| 487 |
well as mod_perl 1. RT #26910. |
| 488 |
|
| 489 |
|
| 490 |
2.17 2007-03-31 |
| 491 |
|
| 492 |
- Log::Dispatch::ApacheLog should now work under mod_perl 2, as well |
| 493 |
as mod_perl 1. |
| 494 |
|
| 495 |
|
| 496 |
2.16 2010-10-16 |
| 497 |
|
| 498 |
- Don't require IO::String for running the tests. Reported by Andreas |
| 499 |
Koenig. RT #23973. |
| 500 |
|
| 501 |
- Moved Test::More to build_requires. Suggested by Andreas Koenig. RT |
| 502 |
#23973. |
| 503 |
|
| 504 |
|
| 505 |
2.15 2006-12-16 |
| 506 |
|
| 507 |
- Don't try to test compilation of L::D::Syslog unless Sys::Syslog is |
| 508 |
available. Patch by Kenichi Ishigaki. RT #23751. |
| 509 |
|
| 510 |
- Allow a subroutine reference as a log message when callin |
| 511 |
Log::Dispatch->log(). Suggested by Craig Manley. RT #23913. |
| 512 |
|
| 513 |
- Added Log::Dispatch::Null output, primarily for testing. |
| 514 |
|
| 515 |
|
| 516 |
2.14 2006-11-18 |
| 517 |
|
| 518 |
This release only involves changes to the test suite. |
| 519 |
|
| 520 |
- Make sure we don't fail if Apache::Log is not installed on the |
| 521 |
system. RT #22791. Reported by Lee Goddard. |
| 522 |
|
| 523 |
- Separated out compilation tests from other tests. |
| 524 |
|
| 525 |
|
| 526 |
2.13 2006-09-25 |
| 527 |
|
| 528 |
- No code changes, just added a SUPPORT section to the docs referring |
| 529 |
folks to RT for bug reports & patches. |
| 530 |
|
| 531 |
|
| 532 |
2.12 2006-08-09 |
| 533 |
|
| 534 |
- The various email sending modules could overwrite if they were in |
| 535 |
buffered mode and they sent mail as a script exited. Reported by |
| 536 |
Dean Kopesky. |
| 537 |
|
| 538 |
- Doc tweaks. Make reference to "Log Levels" section in output module |
| 539 |
docs more explicit. RT #11224. |
| 540 |
|
| 541 |
|
| 542 |
2.11 2005-07-27 |
| 543 |
|
| 544 |
- In tests, make sure filehandles are closed before reading or |
| 545 |
unlinking the file. Patch from Ron Savage. |
| 546 |
|
| 547 |
|
| 548 |
2.10 2004-02-11 |
| 549 |
|
| 550 |
- No changes to the core code, just a change to the included |
| 551 |
Makefile.PL so it works with Module::Build 0.23, which breaks |
| 552 |
backwards compatibility (grr). |
| 553 |
|
| 554 |
- Fix a doc bug in Log::Dispatch::Syslog. It defaults to using a unix |
| 555 |
socket, not an inet socket. |
| 556 |
|
| 557 |
|
| 558 |
2.09 2004-01-09 |
| 559 |
|
| 560 |
- Fix a test failure on Win32 platforms. The problem was in the test, |
| 561 |
not the code. Patch by David Viner. |
| 562 |
|
| 563 |
- Distro is now signed with Module::Signature. |
| 564 |
|
| 565 |
|
| 566 |
2.08 2003-11-27 |
| 567 |
|
| 568 |
- Added Log::Dispatch->would_log method, which indicates whether |
| 569 |
logging will be done for a given log level. Suggested by Ruslan |
| 570 |
Zakirov. |
| 571 |
|
| 572 |
- Switched tests to use Test::More. |
| 573 |
|
| 574 |
|
| 575 |
2.07 2003-09-27 |
| 576 |
|
| 577 |
- Added Log::Dispatch::File::Locked. Based on code from JAA Klunder. |
| 578 |
|
| 579 |
- Check all system call return values. |
| 580 |
|
| 581 |
- Fix warning from Log::Dispatch::File if it was loaded after |
| 582 |
Attribute::Handlers. Reported by Mike Schilli. |
| 583 |
|
| 584 |
- Fixed up POD to pass pod tests. |
| 585 |
|
| 586 |
|
| 587 |
2.06 2003-05-01 |
| 588 |
|
| 589 |
"Arise ye workers from your slumbers |
| 590 |
Arise ye criminals of want |
| 591 |
For reason in revolt now thunders |
| 592 |
and at last ends the age of cant." |
| 593 |
|
| 594 |
- Added a permissions parameter to Log::Dispatch::File->new. Based on |
| 595 |
a patch from James FitzGibbon. |
| 596 |
|
| 597 |
|
| 598 |
2.05 2003-04-18 |
| 599 |
|
| 600 |
- Changed a code construct that seems to provoke a bug for Meng Wong, |
| 601 |
but no one else ;) |
| 602 |
|
| 603 |
- Switched to Module::Build and removed interactive portion of |
| 604 |
installation process. |
| 605 |
|
| 606 |
- Log::Dispatch::Email::MailSender was causing Mail::Sender to send |
| 607 |
debug output to STDERR if warnings were on. Now it's not. |
| 608 |
|
| 609 |
|
| 610 |
2.04 2003-03-21 |
| 611 |
|
| 612 |
- The close_after_write option didn't actually do anything. Fixed by |
| 613 |
JAA Klunder. |
| 614 |
|
| 615 |
|
| 616 |
2.03 2003-02-27 |
| 617 |
|
| 618 |
- Log::Dispatch::ApacheLog would break if a log level was specified as |
| 619 |
a number. Reported by Kevin Goess. |
| 620 |
|
| 621 |
|
| 622 |
2.02 2003-02-20 |
| 623 |
|
| 624 |
- Added close_after_write option to Log::Dispatch::File. Based on |
| 625 |
patch from JAA Klunder. |
| 626 |
|
| 627 |
|
| 628 |
2.01 2002-06-21 |
| 629 |
|
| 630 |
- Added new module Log::Dispatch::Email::MailSender, provided by |
| 631 |
Joseph Annino. |
| 632 |
|
| 633 |
- Log::Dispatch::Output now contains "use Log::Dispatch". |
| 634 |
|
| 635 |
- Now requires Params::Validate, which is used to validate parameter |
| 636 |
for constructors and some other methods. |
| 637 |
|
| 638 |
- Add an 'autoflush' option to Log::Dispatch::File objects. Suggested |
| 639 |
by Jerrad Pierce. |
| 640 |
|
| 641 |
- Added some error checking to ::Email::MailSend. |
| 642 |
|
| 643 |
- Changed a carp to a warn in ::Email::MailSendmail. |
| 644 |
|
| 645 |
- Only warn if $^W is true. |
| 646 |
|
| 647 |
|
| 648 |
2.00 2002-04-11 |
| 649 |
|
| 650 |
** BACKWARDS INCOMPATIBILITY ALERT ** |
| 651 |
|
| 652 |
- Use a standard hash reference for objects instead of pseudo-hashes. |
| 653 |
** THIS MAY BREAK EXISTING SUBCLASSES **. |
| 654 |
|
| 655 |
- Log::Dispatch::Screen claimed it defaulted to using STDERR but it |
| 656 |
was lying, it defaulted to using STDOUT. This has been changed so |
| 657 |
that it really does default to STDERR. Reported by James |
| 658 |
FitzGibbon. |
| 659 |
|
| 660 |
|
| 661 |
1.80 2001-10-27 |
| 662 |
|
| 663 |
- Log::Dispatch::Syslog no longer requires syslog.ph for Perl >= |
| 664 |
5.006. Patch by Benoit Beausejour. |
| 665 |
|
| 666 |
- If you passed a mode parameter to Log::Dispatch::File it always |
| 667 |
thought the mode was append, no matter what was passed. Patch from |
| 668 |
Luke Bakken. |
| 669 |
|
| 670 |
- Log::Dispatch::File no longer uses IO::File internally. |
| 671 |
|
| 672 |
|
| 673 |
1.79 2001-05-15 |
| 674 |
|
| 675 |
- Don't use $, internally. Apparently this is usually undefined. |
| 676 |
Instead, the convenience methods now simply take an array of |
| 677 |
messages and turn it into a scalar by doing "@_". Thanks to Dean |
| 678 |
Kopesky for the bug report. |
| 679 |
|
| 680 |
|
| 681 |
1.78 2001-04-19 |
| 682 |
|
| 683 |
- Allow ApacheLog to take either an Apache or Apache::Server object. |
| 684 |
|
| 685 |
- Fix callback documentation in Log::Dispatch::Output. Thanks to Rob |
| 686 |
Napier. |
| 687 |
|
| 688 |
- Add flush method to Log::Dispatch::Email. Patch submitted by Rob |
| 689 |
Napier. |
| 690 |
|
| 691 |
|
| 692 |
1.77 2001-01-02 |
| 693 |
|
| 694 |
- The convenience methods named after the log levels ($log->debug, |
| 695 |
$log->alert, etc.) can now take a list of scalars. These are joined |
| 696 |
together just like Perl's print function does. Suggested by Tim |
| 697 |
Ayers. |
| 698 |
|
| 699 |
|
| 700 |
1.76 2000-10-10 |
| 701 |
|
| 702 |
- New method: Log::Dispatch->level_is_valid($string). Suggested by |
| 703 |
Jeff Hamman. |
| 704 |
|
| 705 |
- Fix for version issues between CPAN versions of |
| 706 |
Log::Dispatch::ApacheLog. Reported by Jost Krieger. |
| 707 |
|
| 708 |
|
| 709 |
1.75 2000-09-28 |
| 710 |
|
| 711 |
- Additional argument 'level' passed to message processing callbacks. |
| 712 |
Suggested by Jeff MacDonald. |
| 713 |
|
| 714 |
- Log/Dispatch.pm: added docs section on Log::Dispatch::Tk. |
| 715 |
|
| 716 |
|
| 717 |
1.7 2000-08-30 |
| 718 |
|
| 719 |
- Added Log/Dispatch/ApacheLog.pm. This logs to the Apache error log. |
| 720 |
This is for use under mod_perl. |
| 721 |
|
| 722 |
|
| 723 |
1.6 2000-07-04 |
| 724 |
|
| 725 |
NOTE: 1.5 was never released to CPAN. |
| 726 |
|
| 727 |
- Log/Dispatch.pm: Added convenience methods for log levels like |
| 728 |
$dispatcher->alert($message). Suggested by Dominique Dumont. |
| 729 |
|
| 730 |
- This version introduces some changes into the interface that will |
| 731 |
cause incompatibility with any Log::Dispatch::Output interface you may |
| 732 |
have created. However, it is fairly simple to fix. Simply change the |
| 733 |
method in your subclass named 'log' to be called 'log_message'. You |
| 734 |
can also remove the line: |
| 735 |
|
| 736 |
return unless $self->_should_log($params{level}); |
| 737 |
|
| 738 |
This is now done before the message ever gets to the Output subclass |
| 739 |
(which is what it should have done in the first place, really.) |
| 740 |
|
| 741 |
This was done so that I could allow per-Output object callbacks, a |
| 742 |
feature which several people have requested and which seems useful |
| 743 |
enough to warrant the breakage. |
| 744 |
|
| 745 |
NOTE: This change is transparent if you are only using the Output |
| 746 |
objects included with this distribution. |
| 747 |
|
| 748 |
- Many: Changed the interface to allow per-Output object level |
| 749 |
callbacks and documented this. |
| 750 |
|
| 751 |
- Log/Dispatch/Base.pm: new base class for both Log::Dispatch and |
| 752 |
Log::Dispatch::Output objects (contains callback related code). You |
| 753 |
should never need to deal with this class unless you are me. |
| 754 |
|
| 755 |
- Log/Dispatch/Output.pm: document _accepted_levels. |
| 756 |
|
| 757 |
- Log/Dispatch/Output.pm: Fix _accepted_levels so that emergency level |
| 758 |
is returned as 'emergency', not 'emerg'. |
| 759 |
|
| 760 |
- Log/Dispatch.pm: Fix doc bug (change 'file' to 'filename'). Thanks |
| 761 |
to Clayton Scott. |
| 762 |
|
| 763 |
- Log/Dispatch/File.pm: Do compile time check for O_APPEND constant |
| 764 |
rather than run time check. |
| 765 |
|
| 766 |
|
| 767 |
1.2 2000-05-05 |
| 768 |
|
| 769 |
- Log/Dispatch.pm: Added callbacks parameter to Log::Dispatch->new. I |
| 770 |
will also be adding this to the Log::Dispatch::* classes via |
| 771 |
Log::Dispatch::Output but I wanted to get this new version out there |
| 772 |
because I think there are people out there who would benefit from |
| 773 |
this. |
| 774 |
|
| 775 |
- Log/Dispatch.pm: Added docs section on why Log::Dispatch doesn't add |
| 776 |
newlines to outgoing messages. |
| 777 |
|
| 778 |
|
| 779 |
1.11 2000-02-24 |
| 780 |
|
| 781 |
- Realized I need to tweak the $VERSION in Log::Dispatch |
| 782 |
|
| 783 |
|
| 784 |
1.1 2000-02-24 |
| 785 |
|
| 786 |
- Upped version to 1.1 to indicate my confidence in this release (I'm |
| 787 |
just asking for bug reports, I know). |
| 788 |
|
| 789 |
- Added accepted_levels method to Log::Dispatch::Output based on |
| 790 |
discussions with Dominique Dumont (author of the Log::Dispatch::Tk |
| 791 |
suite). |
| 792 |
|
| 793 |
- Canonical names for log levels are now the unabbreviated form |
| 794 |
(though the abbreviated ones used by syslog are still fine and there |
| 795 |
is no plan to deprecate them). This really only affects what is |
| 796 |
returned by the new accepted_levels method. |
| 797 |
|
| 798 |
|
| 799 |
1.010 2000-01-17 |
| 800 |
|
| 801 |
- Fixed a bug in the DESTROY method of Log::Dispatch::Email that |
| 802 |
caused an annoying error and may have caused spurious emails to be |
| 803 |
sent (thanks to Radu Greab). |
| 804 |
|
| 805 |
- Fixed a bug in Log::Dispatch::Email::MailSendmail. For some reason |
| 806 |
this module demands a 'from' address. |
| 807 |
|
| 808 |
|
| 809 |
1.009 2000-01-02 |
| 810 |
|
| 811 |
- Created this version simply to address an issue with CPAN and my |
| 812 |
internal version numbers having a conflict. This has no changes |
| 813 |
from 1.008. |
| 814 |
|
| 815 |
|
| 816 |
1.008 1999-12-30 |
| 817 |
|
| 818 |
- Fixed a bug causing unitialized value warnings with -w (oops). |
| 819 |
|
| 820 |
- Fixed a minor mistake in Log::Dispatch::Syslog docs (thanks to Ilya |
| 821 |
Martynov) |
| 822 |
|
| 823 |
- Put newlines into messages in SYNOPSIS sections for some modules. |
| 824 |
This is to clarify that you need to do this. Just to be clear, |
| 825 |
Log::Dispatch does not alter message content in any manner |
| 826 |
whatsoever (and never will). However, it would be trivial to |
| 827 |
subclass Log::Dispatch to do this. |
| 828 |
|
| 829 |
|
| 830 |
1.007 1999-12-01 |
| 831 |
|
| 832 |
- First public release. It passes its own test suite so it should |
| 833 |
work (he says hopefully). |