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

685 Commits

Author SHA1 Message Date
Haralan Dobrev
393e243499 Add a Slackbot handler
This is the simplest way to log to Slack using the Slackbot.
It supports only plain text with automatic linking of URLs and mentions.
2016-11-19 18:53:00 +02:00
Julien Falque
9d43c66cc6 Make protected generic methods public 2016-11-16 12:15:57 +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
371b8ebb1b Add a RollbarHandler::flush() and make it close automatically on shutdown, fixes #864, closes #865 2016-11-13 20:25:52 +01:00
Jordi Boggiano
2c1ed388c2 Allow overriding the routing key in AMQPHandler, fixes #874 2016-11-13 20:12:37 +01:00
Tugdual Saunier
d234839de1 Make the RavenHandler picks the first highest record as main 2016-10-13 09:42:54 +01:00
Jordi Boggiano
d72b886978 Add support for AWS SDK v3 2016-09-29 09:17:17 +02:00
Jordi Boggiano
40b4891030 Make sure SyslogUdpHandler does not create empty frames where not necessary, fixes #841 2016-09-25 17:30:37 +02:00
Jordi Boggiano
9f8d34afae Tweak RollbarHandler to use proper levels and include level and level_name in context info, fixes #852 2016-09-25 17:03:54 +02:00
Jared King
bc3ccb0e87 Add support for PHP 7 errors in RavenHandler by checking for Throwable instead of Exception 2016-08-17 11:14:23 -05:00
Jordi Boggiano
ced9284123 Fix tests 2016-07-29 04:51:33 +02:00
Jordi Boggiano
9b5bf2cca7 Allow formatting of message by setting a line formatter on SlackHandler, fixes #829 2016-07-29 04:20:18 +02:00
Jordi Boggiano
fac277b15a Make separator optional 2016-07-29 04:07:25 +02:00
Jordi Boggiano
a6ecf50e74 Allow other separators for the date format in RotatingFileHandler 2016-07-29 04:04:32 +02:00
Jordi Boggiano
69fb2aa1c1 Fix GroupHandler::handleBatch when the handler has processors, fixes #814 2016-07-02 14:48:22 +01:00
Jordi Boggiano
39aeecefae Add getter for the StreamHandler URL, fixes #797 2016-05-26 22:44:25 +01:00
Jordi Boggiano
5e6b844653 Only fail on really empty stream URL, fixes #796 2016-05-26 20:27:56 +01:00
Jordi Boggiano
ba9d57a96b Add extra safety 2016-05-20 20:14:51 +01:00
Michael Moussa
09c4cca32b Fix NewRelicHandler error when using LineFormatter 2016-05-20 19:31:17 +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
Filip Procházka
e2c575b505 Catch Throwable 2016-05-13 21:43:07 +02:00
Jordi Boggiano
b23ddb363f Merge pull request #769 from naderman/t/fingers-crossed-override-activation
Provide means to manually activate a FingersCrossedHandler
2016-04-20 20:08:06 +01:00
Nils Adermann
0fc6734c6f FingersCrossedHandler: Clean up code 2016-04-20 15:00:33 -04:00
Nils Adermann
abb58081fe Extract fingerscrossed activation into its own method callable from outside 2016-04-15 14:05:55 -04:00
Andrzej Kupczyk
04dedae4a8 Fixed $handler property visibility
According to the given example, $handler property should not be private.
2016-04-15 17:52:32 +01:00
Nils Adermann
c677398c76 Provide means to manually activate a FingersCrossedHandler
This is useful if you have a FingersCrossedHandler set up and some where
in your application are interested in all output regardless of whether
the threshold is actually reached. For example to temporarily debug some
problem. One can replace the handler in that spot, but this is
signifcantly easier to use.
2016-04-14 16:56:59 -04:00
Jordi Boggiano
a3f7c4a147 Add getStream to the StreamHandler 2016-04-12 19:29:25 +01:00
Jordi Boggiano
f56f2969f7 Fix handling of messages with new lines 2016-04-12 19:17:42 +01:00
Jordi Boggiano
0e3a4bf48b Fix bug when messages contain colons 2016-04-12 19:02:03 +01:00
Jordi Boggiano
d18eb57ee9 Make sure levels are converted properly 2016-04-12 18:43:49 +01:00
Jordi Boggiano
a754edc64c Add ability to use formatter in email subject lines 2016-04-12 18:31:25 +01:00
Jordi Boggiano
1fa91efc3b Add DeduplicationHandler to avoid spamming the same log records over and over 2016-04-12 18:31:22 +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
ccdc8b530c Truncate single messages if they go over the hipchat limit, fixes #629 2016-04-10 12:31:41 +01:00
Christian Flothmann
f72b5036f8 extract browser detection regex into a constant 2016-04-05 12:19:39 +02:00
Remi Collet
8cfc819265 missing property 2016-03-25 17:25:05 +01:00
Jean-Baptiste Nahan
f4b89ac754 Fix content_type property
The property "Content-type" does not exist. Use "content_type" instead.

Work for RabbitMQ.
2016-03-13 16:05:20 +00:00
shiyangwu520
d04afcb5d0 Update RedisHandler.php
Should be the exec method, not the execute method
2016-03-09 11:29:06 +00:00
Jordi Boggiano
5085630fd6 Fix SlackHandler bug where slack drops some messages if the socket is closed too early, fixes #729 2016-03-07 12:29:57 +00:00
Jordi Boggiano
d68b63a0d0 Default to html when no content-type is set 2016-03-04 17:19:59 +00:00
John Hunt
88e483a815 Fixed small syntax bug with BrowserConsoleHandler preventing console output
Replaced commas in send() method when calling generateScript() - this was
preventing any javascript from being output
2016-03-04 17:08:06 +00:00
Jordi Boggiano
127d7720c9 CS fixes 2016-03-01 18:00:33 +00:00
Jordi Boggiano
fa96f6aa8f Add support for firefox in ChromePHPHandler 2016-03-01 17:13:48 +00:00
Daniel Gimenes
3521455e51 LineFormatter if configured to use short attachment 2016-03-01 17:02:07 +00:00
Jordi Boggiano
bf61d9ff3f Allow using LOG_LOCAL* on windows, fixes #713 2016-03-01 16:46:08 +00:00
Jordi Boggiano
1048aa4a59 Allow BrowserConsoleHandler to be overridden for better integration in frameworks 2016-03-01 16:39:55 +00:00
Alexey Karapetov
c688ff17eb HandlerWrapper 2016-03-01 15:59:22 +00:00
Ronald Drenth
0d2bef0579 Add handleBatch implementation for PhpAmqpLib 2016-03-01 15:57:23 +00:00
Jordi Boggiano
973d3ca7ae Fix race condition in rotating file handler, fixes #709 2016-03-01 15:44:46 +00:00