Jordi Boggiano
aeb65fa050
Fix BC break and formatting
2017-03-17 22:52:50 +01:00
ont
8c40211c3f
Fix array syntax for Travis CI
2017-03-15 12:00:44 +07:00
ont
aa6e88b6de
Complete rfc5424 header for SyslogUdpHandler
...
WARN: this commit adds backward incompatibility for the SyslogUdpHandler
constructor.
2017-03-15 00:57:06 +07:00
Piers Warmers
a0406bf8dd
Handle DateTime objects in formatted messages ( #940 )
...
* Handle DateTime objects in formatted meessages
* Use interface to catch both DateTime and DateTimeImmutable
* Maintain formatting standards.
* Visibility to private.
2017-03-14 08:07:57 +01:00
Jordi Boggiano
f3dda67c09
Merge branch '1.x'
2017-03-13 08:08:24 +01:00
Jordi Boggiano
1e044bc4b3
Update changelog for 1.22.1, fixes #918
1.22.1
2017-03-13 08:08:03 +01:00
Jordi Boggiano
1584a90c48
Fix 5.3 support
2017-03-13 08:02:29 +01:00
Ivan Kurnosov
c411ad174c
Changed the "rewind loop condition" operand
...
The `$handlerKey` might be a slightly more readable choice here
2017-03-13 09:06:46 +13:00
Jordi Boggiano
4f0c07af69
Merge branch '1.x'
2017-03-12 18:18:46 +01:00
Jordi Boggiano
821cc3e4a5
Backport fix for #752 , fixes #925
2017-03-12 18:17:37 +01:00
William Skates
8f7f755ed6
Correcting a small spelling mistake in README.md ( #938 )
2017-03-12 18:14:17 +01:00
Ivan Kurnosov
f697ec7c96
Move human readable level name resolution in Logger::addRecord()
to as late as possible ( #934 )
2017-03-12 17:51:16 +01:00
Tim Strijdhorst
e6b05c9173
Allow to set custom event_id [LEGACY] ( #930 )
...
* +allow to set a custom event_id as an extra parameter instead of letting Raven generate a UUIDv4
* +CS
* +CS
* +verbose array syntax because of PHP 5.3 support
2017-03-12 17:46:54 +01:00
fabriceparallel
cc5f1eb34d
Php5.3 autoload errors ( #929 )
...
* make ErrorHandler extends LogLevel to avoid autoloading issue when error is triggered on compile
* Revert "make ErrorHandler extends LogLevel to avoid autoloading issue when error is triggered on compile"
This reverts commit 8140f6026f
.
* call class_exists with force autoload set to true, to force the autoload of LogLevel on registration of the handlers
2017-03-12 17:42:12 +01:00
Níckolas Daniel da Silva
7dd45ac6bf
Improves code coverage ( #926 )
...
* 100% coverage on ErrorHandler::codeToString
* 100% coverage on ErrorHandler::registerFatalHandler
* fix typo
* covers ErrorHandler::register() and left conditions on purpose
* 100% coverage on ErrorHandler::registerErrorHandler()
* 100% coverage on ErrorHandler::registerExceptionHandler()
* Checks for possible interface breaking changes
* 100% coverage on ErrorHandler::codeToString
100% coverage on ErrorHandler::registerFatalHandler
covers ErrorHandler::register() and left conditions on purpose
100% coverage on ErrorHandler::registerErrorHandler()
100% coverage on ErrorHandler::registerExceptionHandler()
2017-03-12 17:27:35 +01:00
Guillaume Polaert
908960d30b
Logmatic fix ( #914 )
...
* Adding the marker field to improve the Logmatic.io compatibilty
2017-03-12 17:13:04 +01:00
Jordi Boggiano
c7776bba2b
Merge pull request #937 from ka7/feature/spelling
...
spelling fixes (comments, text)
2017-03-02 11:36:31 +01:00
klemens
722796ab4d
spelling fixes (comments, text)
2017-02-27 23:38:55 +01:00
Ivan Kurnosov
9e43ef06d8
Minor code readability improvement
2017-02-27 15:43:21 +13:00
Ivan Kurnosov
7f7d5e1f44
Replaced current/next-style loop with foreach
2017-02-27 15:33:55 +13:00
Jordi Boggiano
ff96b8e163
Merge pull request #917 from jstolp/master
...
Happy 2017 Jordi / Seldaek / Monolog
2017-01-20 11:35:33 +01:00
Jeroen Stolp
28711ca8d2
Happy 2017 Jordi
2017-01-20 11:29:00 +01:00
Jordi Boggiano
470836c739
Merge pull request #911 from StevenWInfo/docUpdates
...
Replacing the add* methods in the docs and comments with the PSR-3 compliant methods
2017-01-20 10:05:31 +01:00
Jordi Boggiano
329c7cf4fc
Update 04-extending.md
2017-01-20 10:04:38 +01:00
Jordi Boggiano
90db47190d
Update 01-usage.md
2017-01-20 10:02:23 +01:00
Jordi Boggiano
5aeec05068
Update README.md
2017-01-20 10:00:18 +01:00
Remon van de Kamp
6a7b187802
Add documentation on internal log message structure ( #895 )
...
* Add documentation on internal log message structure
* Fix typo and remove untrue comment
* Fix a few typos
* Mention that message placeholders will only be replaced when the PsrLogMessageProcessor is in use
* Clarify channel field in message-structure.md
2017-01-20 09:59:00 +01:00
Lesnykh Ilia
c82afaa303
Add missed return phpdoc tag. ( #908 )
...
* Add missed return phpdoc tag.
* Change $this to self.
2017-01-11 17:17:39 +01:00
StevenW
2544676a41
Replacing the outdated add* methods in the docs with the PSR-3 compliant methods.
2017-01-07 13:27:27 -08:00
Jordi Boggiano
efb3fa354c
Merge branch '1.x'
2016-12-16 08:47:02 +01:00
Remon van de Kamp
23c9842285
Remove remaining artifacts from mlehner/gelf-php ( #896 )
2016-12-13 15:34:52 +01:00
Michal Zuber
cab58eb1e5
Fixed Logstash event format link ( #898 )
2016-12-13 15:34:24 +01:00
Anton Nizhegorodov
b732364e70
Slack improvements ( #894 )
...
- [x] Exclude `extra`/`context`, `datetime`, `level` from message when attachment is used
- [x] Use `ts` attachment key to display `datetime` considering user timezone
- [x] [Support](https://github.com/Seldaek/monolog/pull/846#issuecomment-249528719 ) custom user images
- [x] [Allow](https://github.com/Seldaek/monolog/pull/894#issuecomment-263532399 ) to setup username from slack
- [x] [Improve](https://github.com/Seldaek/monolog/pull/846#issuecomment-261529198 ) array formatting within `context`/`extra`
- [x] [Support](https://github.com/Seldaek/monolog/issues/745 ) `include_stacktraces` option when attachment is not used and always include stacktraces when attachment is used
- [x] Support `extra`/`context` field exclusion
- [x] Update tests
2016-12-13 15:25:55 +01:00
Jordi Boggiano
fdd6780ffd
Merge pull request #897 from vlakoff/readme
...
Rename Markdown files to use the regular file extension
2016-12-04 19:12:24 +01:00
vlakoff
8d53e6b91f
Rename Markdown files to use the regular file extension
2016-12-03 12:26:01 +01:00
Jordi Boggiano
24ad4b02b6
More interface updates
2016-11-27 11:28:44 +01:00
Jordi Boggiano
b154c5fd26
Interface updates
2016-11-27 11:26:51 +01:00
Jordi Boggiano
5d28746bb0
Fix tests
2016-11-26 01:38:50 +01:00
Jordi Boggiano
f6e6f22e77
Merge branch '1.x'
2016-11-26 01:23:57 +01:00
Jordi Boggiano
bad29cb8d1
Finalize 1.22 readme
1.22.0
2016-11-26 01:15:39 +01:00
Jordi Boggiano
774dedb352
Merge pull request #891 from naderman/t/do-not-iterate-non-arrays
...
Do not iterate non-array Traversables
2016-11-26 01:04:57 +01:00
Jordi Boggiano
e94929eed0
Merge pull request #846 from hkdobrev/slack-webhooks
...
Add new Slack handlers using Slackbot and webhooks
2016-11-26 00:40:05 +01:00
Jordi Boggiano
87d1216189
Merge pull request #893 from jaschweder/patch-1
...
add MercurialProcessor to docs
2016-11-25 16:31:12 +01:00
Jonathan André Schweder
9378b3f68c
add MercurialProcessor to docs
2016-11-25 11:30:55 -02:00
Nils Adermann
45de570954
Don't even try to attempt normalizing iterators or generators in context
...
Iterators and Generators may not be rewindable, so foreach is not safe
to use on them.
Iterators and especially Generators may trigger irreversible actions on
calling next(), so iterating over all values can potentially cause harm,
e.g. imagine an iterator over a set of HTTP POST requests that are sent
when the next value is requested . The only sufficiently safe thing to
iterate and include here are primitive arrays.
2016-11-24 17:38:07 +01:00
Haralan Dobrev
9fbc286428
Add unit test for SlackbotHandler
2016-11-19 18:54:46 +02:00
Haralan Dobrev
43e1e69bad
Add unit tests for SlackWebhookHandler
2016-11-19 18:54:46 +02:00
Haralan Dobrev
26b526d9fb
Do not put empty Slack attachments array by default
2016-11-19 18:54:46 +02:00
Haralan Dobrev
8b2b13546e
Format constructors on a single line
...
This is for consistency with the rest of the handlers.
2016-11-19 18:53:03 +02:00
Anton Nizhegorodov
506e1b99e4
Make message formatting behaviour same as previous version
2016-11-19 18:53:02 +02:00