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

49 Commits

Author SHA1 Message Date
Jordi Boggiano
f3dda67c09 Merge branch '1.x' 2017-03-13 08:08:24 +01:00
Jordi Boggiano
1584a90c48 Fix 5.3 support 2017-03-13 08:02:29 +01:00
Jordi Boggiano
821cc3e4a5 Backport fix for #752, fixes #925 2017-03-12 18:17:37 +01:00
Jordi Boggiano
1dc4cf31e8 Merge branch '1.x' 2016-11-13 20:26:27 +01:00
Jordi Boggiano
cc8a013611 Optimize removal of leftover extra/context placeholders, refs #866 2016-11-13 20:17:30 +01:00
Jordi Boggiano
9da099717b Cast toJson to string in case it returns false, fixes #878 2016-11-13 19:36:50 +01:00
Pavel Golovin
c3c0abf2a4 Update LineFormatter.php 2016-10-10 19:01:08 +03:00
Pavel Golovin
ccb4aeba21 Remove substitution for not defined variables
If variable in extra or context isn't defined, than placeholder will not not be replaced in format string. This patch remove all not replaced placeholders
2016-10-10 18:57:57 +03:00
Jordi Boggiano
6e6586257d Add scalar types to processor/formatters and top level classes 2016-09-25 21:23:35 +02:00
Jordi Boggiano
bb61bfbe3b When newlines are allowed in LineFormatter, unpack json_encoded blobs containing newlines into multiline strings, fixes #752 2016-09-25 18:22:52 +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
6f26801be6 More type hints 2016-05-26 18:04:57 +01:00
Jordi Boggiano
ba995ffd1e Merge branch '1.x' 2016-03-01 17:15:43 +00:00
Jordi Boggiano
25131bb5f6 Add context.* replacement in line formatter, fixes #717 2016-03-01 16:58:06 +00:00
Jordi Boggiano
481fc4cfa1 PHP7 compat for exception classes, fixes #718 2016-03-01 16:20:06 +00:00
Jeroen Thora
8ceda1b62e Removed unnecessary php version checks after php dependency bump to 7.0 2015-12-20 15:53:48 +01:00
Vitaliy Zhuk
1a14403060 Optimize replace new lines 2015-04-15 11:15:37 +03:00
Jordi Boggiano
3e1b8a7afe Remove code duplication, refs #435 2014-12-28 16:28:20 +00:00
Jordi Boggiano
1cb39eedb5 Allow including stack traces in line formatter, fixes #466 2014-12-13 13:54:24 +00:00
Sergey Chizhik
21c54ac660 fix 2014-12-05 14:36:37 +02:00
Sergey Chizhik
7902b8c396 Add exception code 2014-12-04 18:42:38 +02:00
Jordi Boggiano
43ca6dc06b Remove preg_replace to hopefully fix segfault on long inputs, fixes #376 2014-09-30 12:33:35 +01:00
Dawid Nowak
efe572cb10 LineFormatter: context and extra optionally not shown when empty 2014-07-03 15:03:28 +02:00
Jordi Boggiano
4c74b127eb Tweak code to allow newlines in format, refs #322 2014-02-18 15:12:15 +01:00
Gunnar Lium
2aa09265fc Strip inline line breaks from LineFormatter entries. 2014-02-14 14:35:44 +01:00
Sergey Rabochiy
4d3723c68d Code style fix 2013-11-29 21:05:44 +07:00
Sergey Rabochiy
e012bf1b63 Fix boolean to string convertation. Fix double normalization.
Details bug:
$context = ["false", false]; // formatted as {"0":"false","1":"false"} when need {"0":"false","1":false}
2013-11-29 16:09:42 +07:00
Jordi Boggiano
7f99ac07d3 Only serialize things if needed 2013-10-31 22:38:39 +01:00
Jordi Boggiano
da4bf80702 Ignore errors on 5.3 as well 2013-10-31 22:38:24 +01:00
wiistriker
bbb0a5948f Update LineFormatter.php 2013-10-23 20:14:57 +11:00
wiistriker
a8bbda7310 Ignore json_encode errors 2013-10-23 19:50:05 +11:00
Jordi Boggiano
642cdf620b Add support for previous exceptions in LineFormatter 2013-04-07 13:22:41 +02:00
Jordi Boggiano
eaf2b07120 Serialize exceptions in a minimalistic way in the LineFormatter 2013-03-17 19:26:08 +01:00
Jordi Boggiano
63e3bfdf7e Resolve json encoding errors issue globally, refs #137 2013-01-06 20:14:14 +01:00
Jordi Boggiano
a929570bb7 Fix json encoding, fixes #110 2012-09-05 21:32:46 +02:00
Jordi Boggiano
da33c84d07 CS fixes 2012-06-14 15:47:01 +02:00
Jordi Boggiano
0bd4d93006 Split off line formatter in normalizer + line formatters 2012-04-22 12:36:23 +02:00
Jordi Boggiano
9c2f081c9a Add support for serializing resources in LineFormatter 2011-06-29 19:23:43 +02:00
Christophe Coevoet
c1675c59d8 Added the support of a logging context 2011-06-01 00:10:38 +02:00
Christophe Coevoet
a8d4fc4a34 Tweaked the formatting of complex data in the LineFormatter 2011-05-31 20:52:44 +02:00
Christophe Coevoet
0775b03de0 Added support of objects and arrays as values in LineFormatter. closes #19 2011-05-08 19:29:58 +02:00
Christophe Coevoet
7ebcc6420f Changed the FormatterInterface to return only the formatted message and added a batch formatting method 2011-05-07 00:55:59 +02:00
Christophe Coevoet
708d799e1d Simplified code 2011-05-06 19:48:34 +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
6c24217c56 Renamed message to record 2011-02-25 23:01:43 +01:00
Jordi Boggiano
0bb419cb95 Added array output to LineFormatter 2011-02-23 10:57:27 +01: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