1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-21 16:46:11 +02:00
Commit Graph

49 Commits

Author SHA1 Message Date
Jordi Boggiano
2e9de2a0db Merge pull request #1055 from chonaso/master
Fix Comparison operator in RotatingFileHandler
2018-06-08 20:30:13 +02:00
Jordi Boggiano
bd7b28e5ee Merge branch '1.x' 2018-06-07 18:49:40 +02:00
Erik Booij
ecdfdc9897 Rename Boolean in phpDocs to bool 2017-11-04 12:14:41 +01:00
From now on, you will speak only when spoken to, and the first and last words out of your filthy sewers will be "Sir!
f5d968ba95 Fix Comparison operator in RotatingFileHandler 2017-09-19 20:07:32 +09:00
Jordi Boggiano
6b0d0c4a19 Merge branch '1.x' 2016-07-29 04:53:49 +02:00
Jordi Boggiano
ced9284123 Fix tests 2016-07-29 04:51:33 +02:00
Jordi Boggiano
f952c6b5c9 Merge branch '1.x', fixes #771 2016-07-29 04:09:04 +02:00
Jordi Boggiano
fac277b15a Make separator optional 2016-07-29 04:07:25 +02:00
Jordi Boggiano
679f4064a8 Merge branch '1.x' 2016-07-29 04:05:03 +02:00
Jordi Boggiano
a6ecf50e74 Allow other separators for the date format in RotatingFileHandler 2016-07-29 04:04:32 +02:00
Jordi Boggiano
21dde4dedb Move to strict mode and fix tests 2016-05-27 13:44:00 +01:00
Jordi Boggiano
f200e79879 CS fixes 2016-05-26 20:54:06 +01:00
Jordi Boggiano
e27225dc40 Switch to DateTimeImmutable everywhere 2016-05-20 20:55:31 +01:00
Remon van de Kamp
83a24937ba Add deprecation errors on RotatingFileHandler (#774)
* Add deprecation errors when attempting to set dateFormats of fileFormats that
break the possibility of rotating easily in RotatingFileHandler. Version 2.x
of Monolog will throw `\InvalidArgumentException`s in these cases.
2016-05-20 19:13:19 +01:00
Remon van de Kamp
1841e2ba88 Lock down RotateFileHandler to prevent errors with rotation
- Require the dateFormat to be one of three presets ('Y-m-d', 'Y-m' or 'Y') to
  ensure that dates can be sorted lexographically
- Require the filenameFormat to contain the (sub)string `{date}` so we will
  actually create new files instead of the same file over and over again.
2016-04-18 21:51:37 +02:00
Jordi Boggiano
973d3ca7ae Fix race condition in rotating file handler, fixes #709 2016-03-01 15:44:46 +00:00
Jordi Boggiano
c889fb2648 CS fixes & upgrading cs fixer config 2015-11-18 17:09:46 +00:00
Jordi Boggiano
3dccef613e Make sure handlers can be closed multiple times 2015-08-09 17:29:31 +01:00
Jordi Boggiano
72ad8a533d Rename preferLocking to useLocking 2014-07-28 20:19:11 +02:00
Jordi Boggiano
bed2855bcb Add preferLocking flag to RotatingFileHandler 2014-07-28 20:17:41 +02:00
Jordi Boggiano
25b16e8019 CS fixes 2014-06-04 18:30:04 +02:00
Alberto López Doñaque
29978f6b6c PHPDoc comment does not match method signature 2014-05-22 19:58:38 +02:00
Christophe Coevoet
b5b4d3bae1 Fixed the default file permission for RotatingFile 2014-04-24 10:44:31 +02:00
Jordi Boggiano
0b654cec86 CS fixes 2014-04-23 09:20:48 +02:00
Jordi Boggiano
7c002e9d55 Fix issue with changing the rotating file handler filename format, refs #267 2014-04-17 13:19:47 +02:00
Pankaj Garg
b2e5c9ab11 minor indentation fixes 2014-03-26 16:14:50 +05:30
Pankaj Garg
1f4106ca92 -> indentation {nb} 2014-03-26 16:13:34 +05:30
Pankaj Garg
b2e2530406 option to set file permissions in rotatingFileHandler 2014-03-26 13:09:02 +05:30
Jordi Boggiano
3926d95f8a CS fixes 2013-12-26 11:43:12 +01:00
Luis Cordova
fb542f2164 address second comment on using str_replace instead of printf for setting filename format expression 2013-11-05 13:55:03 -05:00
Luis Cordova
b140ff1bb0 change name according to Seldaek recommendation 2013-11-05 13:33:39 -05:00
Luis Cordova
a72862ffc3 switch from setTimedFilename to setFilenameFormatParams 2013-11-05 10:10:35 -05:00
Luis Cordova
93469c4108 move public method before protected ones 2013-11-05 10:07:35 -05:00
Luis Cordova
6489e364d8 remove unused glob member 2013-11-05 09:56:19 -05:00
Luis Cordova
6d17d0c89f plug #245 log rotate with setTimedFilename 2013-11-04 23:05:35 -05:00
Jordi Boggiano
875ada786b Avoid using GlobIterator since it seems to trip up open_basedir restrictions, fixes #204 2013-06-20 16:40:07 +02:00
Jordi Boggiano
953f21a7d8 Force log rotation on a daily basis even for long running processes, fixes #166 2013-02-21 11:03:40 +01:00
Jordi Boggiano
da33c84d07 CS fixes 2012-06-14 15:47:01 +02:00
Christophe Coevoet
3cb3dbdc8f Made the write method protected
Tests are not a good reason to make it public.
2011-04-06 13:22:06 +02:00
Christophe Coevoet
87332a3e4e Added phpdoc for all methods and added the typehint for the FormatterInterface 2011-04-06 00:50:18 +02:00
Jordi Boggiano
a9fc15a5a9 Fixed typo 2011-04-05 23:39:27 +02:00
Jordi Boggiano
189090d971 Simplified RotatingFileHandler a bit 2011-04-05 23:21:29 +02:00
Jordi Boggiano
df1679967c Added tests for RotatingFileHandler 2011-04-05 23:19:59 +02:00
Jordi Boggiano
3b0f738b88 Added docblocks 2011-04-05 22:35:39 +02:00
Jordi Boggiano
45312dfc84 Optimize rotation so it's only done once per day at most 2011-04-05 22:24:39 +02:00
Jordi Boggiano
35dd65dea3 Fix CS 2011-04-05 22:15:22 +02:00
Christophe Coevoet
32d66528b2 Implemented the file rotation 2011-04-05 20:09:34 +02:00
Jordi Boggiano
811e6c79d6 Added docblocks and fixed a couple tests 2011-02-22 12:10:54 +01:00
Jordi Boggiano
3fa6e4b91f Major refactoring to follow the Logbook model 2011-02-20 20:53:11 +01:00