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

39 Commits

Author SHA1 Message Date
Jordi Boggiano
bd7b28e5ee Merge branch '1.x' 2018-06-07 18:49:40 +02:00
Jordi Boggiano
8c4539f1fe More boolean=>bool 2018-06-07 18:45:07 +02:00
Erik Booij
ecdfdc9897 Rename Boolean in phpDocs to bool 2017-11-04 12:14:41 +01: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
c889fb2648 CS fixes & upgrading cs fixer config 2015-11-18 17:09:46 +00:00
DJ Sipe
c141ff3ee7 Update type cast to use boolean 2015-04-09 16:32:29 -04:00
DJ Sipe
5a00504b08 Allow use of formatted message
This change allows you to use the "formatted" index from your formatter.  This is helpful if you want to create a formatter that would include *some* context information beyond the message itself.

Since the default `LineFormatter` would be too verbose, I added a `useFormattedMessage()` method that accepts a boolean and would turn the use of the formatter on or off. This way, if you want to use a custom formatter, you can enable the functionality...but it will still work the same out of the box otherwise with just the message getting sent to Pushover.
2015-04-09 15:58:16 -04:00
Jordi Boggiano
257a1c1180 Remove unnecessary ctor init, refs #446 2014-12-29 19:15:00 +00:00
Richard van Laak
1ad2cc0d84 Update PushoverHandler.php 2014-12-08 13:51:44 +01:00
Richard van Laak
15fe95e194 Update PushoverHandler.php
... with extra parameters for when the priority = 2

https://pushover.net/api#priority
2014-10-31 15:11:53 +01:00
Richard van Laak
3eb9ffda35 Update PushoverHandler.php
.. according to the feedback @stof gave
2014-10-31 14:51:57 +01:00
Richard van Laak
8927351941 Update PushoverHandler.php
... so all available parameters from the (API)[https://pushover.net/api] can be included in the record.
2014-10-31 13:50:09 +01:00
Jordi Boggiano
feb19af2d4 Add support for PSR-3 levels to all public APIs accepting levels, fixes #421 2014-09-30 13:59:45 +01:00
Rvanlaak
bd77dd9f93 fix PushoverHandler notice 2014-09-15 12:16:22 +02:00
Grégoire Pineau
f3b61cf48a Fixed visibility 2014-09-08 20:01:00 +02:00
Jordi Boggiano
0b654cec86 CS fixes 2014-04-23 09:20:48 +02:00
Rvanlaak
6c35b82256 Check 'context' before 'extra'
First check 'context' array, before 'extra' array is checked
2014-04-10 16:54:05 +02:00
Rvanlaak
82c040ec12 Make use of 'extra'
Follow guidelines by using the 'extra' key from record
2014-04-09 16:04:48 +02:00
Rvanlaak
a49cc6e8aa Update PushoverHandler.php
tabs > spaces
2014-04-09 15:58:52 +02:00
Rvanlaak
3df597f1c5 Add sound support
Add support for the default API sounds
2014-04-09 11:48:02 +02:00
Jordi Boggiano
3926d95f8a CS fixes 2013-12-26 11:43:12 +01:00
Jordi Boggiano
7a8844d4db Fix CS and add chainability to a few more setter methods, refs #221 2013-08-09 14:12:38 +02:00
ghanbari
1dd293406d can not send on Emergency Priority
https://github.com/Seldaek/monolog/issues/219
2013-08-08 20:13:40 +04:30
Jordi Boggiano
4277c5db4a CS fixes 2013-07-29 00:08:51 +02:00
Jordi Boggiano
e2e041eded Store user in a temporary property instead of hacking it into the record 2013-07-29 00:08:01 +02:00
Emmanuel Vella
46cedf5e2f Allow multiple users for PushoverHandler
The construct accepts a string or an array of user ids to keep backward compatibility.

In case of an array, a message is built and send for each of the users.
2013-07-26 16:35:47 +02:00
Jordi Boggiano
c933bb67a8 CS fixes, refs #209 2013-07-11 18:36:07 +02:00
Artur Moczulski
aeb2dd578c Update PushoverHandler.php
simplifying the priority level setting if condition following stof suggestion
2013-07-10 08:44:39 -07:00
Artur Moczulski
fe13e80787 added support for Pushover API priority brought up by SteveEdson in issue #187; the priority levels can be adjusted either through the handler's constructor or setters 2013-07-08 00:35:22 -07:00
Jordi Boggiano
dae7e03ae3 Fix permissions 2013-01-22 10:58:40 +01:00
Alex Butter
448d5470f0 Option to use SSL for PushoverHandler (enabled by default), and close connection after sending a message to PushOver.
Solves #146: When sending messages in rapid succession to pushover.net only the first one is sent.
The SSL option is needed when sending messages to users that are not the pushover.net app owner; pushover.net doesn't accept those messages over plain HTTP.
2013-01-16 12:57:14 +01:00
Jordi Boggiano
04f41cd661 CS fixes 2013-01-06 21:43:53 +01:00
Jordi Boggiano
176cb2a354 Change the default pushover title to the hostname 2013-01-06 21:43:32 +01:00
Jordi Boggiano
09d8747914 Specify port in the connection string instead of adding a protected property 2013-01-06 21:38:40 +01:00
Sebastian Goettschkes
cb675ae10f Changing typo in variable name and default title for pushover message 2012-10-05 16:56:58 +02:00
Sebastian Goettschkes
11c07edfbe Overwriting the generateDataStream method to format the Data sent to Pushover
This way, the write method does not have to be overwritten.
2012-09-24 13:14:51 +02:00
Sebastian Goettschkes
7d0bacf29c Rewriting the write method
Before, the write method would alter the $record array and then call parent::write().
Now the method builds the string which should be written into the stream and then does it himself.
I had to change two methods to be protected so the PushoverHandler could call them.
2012-09-09 21:10:42 +02:00
Sebastian Goettschkes
d6489bb3ae Adding a first version of PushoverHandler
The PushoverHandler sends messages to api.pushover.net. The class depends on the SocketHandler
I modified the SocketHandler to make it possible to change the port for subclasses (Pushover needs the explicit port 80 to work)
The tests only see if the content sent to the api is correct. The rest should be already covered in the tests for the Sockets.
2012-09-09 15:50:31 +02:00