1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-22 00:56:08 +02:00
Commit Graph

56 Commits

Author SHA1 Message Date
Jordi Boggiano
4a33226f25 Wrap up type-hint adding to all handlers 2018-11-19 23:28:33 +01:00
Jordi Boggiano
06143b03e5 Add a bunch of return types and fix type inconsistencies reports from phan 2018-07-04 14:14:08 +02:00
Jordi Boggiano
41b8f5ebf4 CS fixes 2018-06-18 18:53:46 +02:00
Jordi Boggiano
cf33c12b4f Merge branch '1.x' 2018-06-08 12:51:51 +02:00
Josh McRae
c0eeca76fd Check for directory before throwing 'no existing directory' exception 2018-06-08 12:51:29 +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
Jordi Boggiano
7405bb5d67 CS fixes 2017-03-20 10:56:47 +01:00
Jordi Boggiano
9cabe2961a Merge branch '1.x' 2016-11-15 13:16:37 +01:00
Jordi Boggiano
f1d2b090d5 CS 2016-11-15 13:16:16 +01:00
Jay MOULIN
09a68c81e3 isolate fwrite to allow override 2016-11-15 13:15:19 +01:00
Jordi Boggiano
5ce1c921ad Fix type errors, thanks phan 2016-09-25 22:11:37 +02:00
Jordi Boggiano
21dde4dedb Move to strict mode and fix tests 2016-05-27 13:44:00 +01:00
Jordi Boggiano
788902b320 Merge branch '1.x' 2016-05-26 22:44:31 +01:00
Jordi Boggiano
39aeecefae Add getter for the StreamHandler URL, fixes #797 2016-05-26 22:44:25 +01:00
Jordi Boggiano
f200e79879 CS fixes 2016-05-26 20:54:06 +01:00
Jordi Boggiano
5e6b844653 Only fail on really empty stream URL, fixes #796 2016-05-26 20:27:56 +01:00
Jordi Boggiano
a3f7c4a147 Add getStream to the StreamHandler 2016-04-12 19:29:25 +01:00
Jordi Boggiano
a7ade9d68f Only close handles that have been opened by the StreamHandler, fixes #764 2016-04-10 13:01:10 +01:00
Jordi Boggiano
c889fb2648 CS fixes & upgrading cs fixer config 2015-11-18 17:09:46 +00:00
Jordi Boggiano
e4f45be5dc Fix CS 2015-07-20 19:31:46 +01:00
William Johnston
3fa5b2f36d Create directory on initial log write rather than class instantiation. 2015-07-14 13:19:53 -05:00
Dominik Zogg
fe12c5278f stream handler creates a directory if its possible 2015-07-05 12:09:12 +00:00
Jeroen De Dauw
6595e39ec8 Use FQN since class is not imported 2014-10-28 13:39:01 +01:00
Theo Kouzelis
9752eb9bf3 Removed unnecessary test code and corrected doc style 2014-09-20 12:05:16 +01:00
Theo Kouzelis
d52085a32f Remove Debug Code 2014-09-17 21:38:44 +01:00
Theo Kouzelis
b838c31b21 Stream Handler Throw Invalid Argument If Not String Or Resource 2014-09-17 21:35:11 +01:00
Jordi Boggiano
72ad8a533d Rename preferLocking to useLocking 2014-07-28 20:19:11 +02:00
Jordi Boggiano
8aea201b07 Merge remote-tracking branch 'Topface/locking-stream'
Conflicts:
	src/Monolog/Handler/StreamHandler.php
2014-07-28 20:08:28 +02:00
jeroendedauw
d7d572a0e2 Fix typo in docblock 2014-07-27 17:20:10 +02:00
Ian Babrou
6c799b3976 support for log file locking 2014-07-08 18:57:38 +04:00
Johann Zelger
a1e7f2a6fb fixed resource check 2014-04-07 17:52:05 +02:00
Jordi Boggiano
f3032a2b98 Avoid chmoding unless requested, fixes #348 2014-04-01 21:53:04 +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
89ba162dca Update readme, fix cs 2013-11-20 13:30:00 +01:00
Birkir A. Barkarson
0f4401891e Fixes based on comments.
- Change function to private.
- Use private variable correctly.
2013-10-11 14:58:39 +09:00
Birkir A. Barkarson
dcbb7bce2f Changes from comments.
- Move private instance variable.
- Reset errorMessage.
- See https://github.com/Seldaek/monolog/pull/248
2013-10-10 16:49:24 +09:00
Birkir A. Barkarson
1f12588c00 eAccelerator doesn't like anonymous functions.
- Change to private instance method for error handler.
2013-10-10 14:01:37 +09:00
Jordi Boggiano
0ce44f1526 Improve error reporting on failed streams, refs #85 2012-08-18 18:18:40 +02:00
Jordi Boggiano
da33c84d07 CS fixes 2012-06-14 15:47:01 +02:00
Jérôme Macias
33dbc820fc Removed unuse use statement 2011-11-13 17:18:30 +01:00
Christophe Coevoet
c1675c59d8 Added the support of a logging context 2011-06-01 00:10:38 +02:00
Ryan Weaver
d39b7084cd Trying to carefully improve the language on a common exception message
For example, if using Symfony, this is probably that first thing you'll see after installing, because the logs directory won't be writable. So, ideally, it should be clear enough that the user knows to change the permissions on the directory. Many developers might not understand the idea of a "stream", but they do understand a file not being writable.
2011-05-14 18:32:30 -05:00
Christophe Coevoet
0defabb726 Refactored the AbstractHandler to avoid having some dummy write() methods 2011-05-11 18:43:04 +02:00
hidenorigoto
3b54f13e72 fixed StreamHandler close
I encounted the case $this->stream = 0 when close method was called,
I think the caller condition may be wrong in this case.
But stronger check for the $this->stream parameter makes sense I think.
2011-04-17 18:14:46 +09: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
c6f59a7b7c Gna copy paste typo 2011-04-05 23:40:58 +02:00