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

463 Commits

Author SHA1 Message Date
George Mponos
655b4284d8 Delete slackbot handler 2018-12-26 16:38:36 +02:00
George Mponos
ee350961da Remove assertInternalType that it is deprecated 2018-12-16 23:46:26 +02:00
George Mponos
5c8e68b6de Fix mockobjects docblocks in tests 2018-12-09 21:57:40 +02:00
Jordi Boggiano
0ad73a526f CS fixes 2018-12-08 18:16:32 +01:00
Jordi Boggiano
b978700c05 Merge remote-tracking branch 'akalongman/feature/elasticsearch' 2018-12-08 18:11:25 +01:00
Jordi Boggiano
204744df2e Merge branch '1.x' 2018-11-30 08:44:17 +01:00
Jordi Boggiano
a335f6f1a5 Fix tests for TestHandler reset support 2018-11-30 08:43:17 +01:00
Jordi Boggiano
aaf61a47da Merge pull request #1234 from gmponos/update_phpunit_7
Update to phpunit 7
2018-11-30 08:26:31 +01:00
Jordi Boggiano
bb99e4c699 Tweak const visibility, refs #1228 2018-11-29 20:09:44 +01:00
George Mponos
43b7120b66 Merge branch 'master' into update_phpunit_7 2018-11-21 23:24:56 +02:00
George Mponos
2483a8d24f Fix tests for phpunit 7 2018-11-21 23:24:05 +02:00
Jordi Boggiano
a7b16cfc73 Allow setting a formatter on the PsrHandler, fixes #1070 2018-11-19 23:50:49 +01:00
Jordi Boggiano
4a33226f25 Wrap up type-hint adding to all handlers 2018-11-19 23:28:33 +01:00
Jordi Boggiano
1c5b0b8ff4 Update return types 2018-11-19 14:40:54 +01:00
Jordi Boggiano
073c5d763a Merge branch '1.x' 2018-11-04 18:40:32 +01:00
Dimitri Gritsajuk
869ca5963f [RavenHandler] Add environment and breadcrumbs support 2018-11-02 22:01:16 +01:00
Dimitri Gritsajuk
67365f0300 Fix test 2018-10-28 14:14:18 +01:00
Avtandil Kikabidze
8656fb1352 Merge branch 'master' into feature/elasticsearch 2018-09-12 18:08:44 +04:00
Grégoire Pineau
0625068bf0 Added a new ResettableInterface and implemented it where possible.
When one use Monolog in a long process like an AMQP worker with a
`FingersCrossedHandler` or `BufferHandler` there is a drawback: as soon as there
is an AMQP message that generate a log >= error (for example), all next AMQP
messages will output logs, even if theses messages don't generate log where
level >= error.

In the same context there is a drawback for processor that add an UUID to the
logs. The UUID should change for each AMQP messages.

---

This patch address this issue with a new interface: `ResettableInterface` interface.
Side note: `reset()`, `flush()`, `clear()`,  are already used in Monolog. So
basically, one can use the `reset()` on the `Logger` and on some
`Handler`s / `Processor`s.

It's especially useful for

* the `FingersCrossedHandler`: it `close()` the buffer, then it `clear()` the buffer.
* the `BufferHandler`: it `flush()` the buffer, then it `clear()` the buffer.
* the `UidProcessor`: it renew the `uid`.
2018-07-06 16:07:13 +02: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
Avtandil Kikabidze
4c7795d310 Rename ElasticSearch to Elasticsearch 2018-06-27 11:48:39 +04:00
Avtandil Kikabidze
249d1dcb5f Merge branch 'master' into feature/elasticsearch
# Conflicts:
#	composer.json
#	src/Monolog/Handler/ElasticSearchHandler.php
2018-06-24 20:43:55 +04:00
Jordi Boggiano
41b8f5ebf4 CS fixes 2018-06-18 18:53:46 +02:00
Jordi Boggiano
796f56b6d3 Fix test suite 2018-06-18 15:55:01 +02:00
Jordi Boggiano
95f62f7e3c Merge branch '1.x' 2018-06-18 15:54:04 +02:00
Petter Blomberg
f753c68a73 Make context optional in hasRecord to not break backwards compatibility 2018-06-18 15:52:04 +02:00
Petter Blomberg
b381a973bc Make TestHandler::hasRecord assert context, not only message 2018-06-18 15:50:12 +02:00
Jordi Boggiano
71afce5df7 Merge branch '1.x' 2018-06-18 11:34:19 +02:00
Klemen Bratec
e8db808dd3 Allow setting stream chunk size in SocketHandler (#1129) 2018-06-18 11:31:46 +02:00
Jordi Boggiano
3175130061 Merge branch '1.x' 2018-06-17 18:04:17 +02:00
Jordi Boggiano
00aca28c8b Fix SlackRecord normalization of fields, closes #1078 2018-06-17 18:03:59 +02:00
Artur Moczulski
c2d1d22b71 Sync RollbarHandler with the latest changes rollbar/rollbar package (#1042)
* Sync RollbarHandler and RollbarHandlerTest with the latest changes in the rollbar/rollbar package (1.0+)
2018-06-17 16:16:39 +02:00
Sergey Zaika
c1b610a676 fix InsightOpsHandlerTest 2018-06-17 15:44:17 +02:00
Pascal
5bb1c5fb4f Check if monolog runs in web context (#1024)
* Check if monolog runs in web context
2018-06-11 17:36:34 +02:00
Jordi Boggiano
ff5ae5cead Merge branch '1.x' 2018-06-11 17:35:32 +02:00
Jordi Boggiano
a6be840ff8 Merge pull request #1052 from gmsantos/1.x
Include InsightOps handler
2018-06-11 17:30:04 +02:00
Jordi Boggiano
2b688c4d1d Merge branch '1.x' 2018-06-09 17:23:36 +02:00
Jordi Boggiano
c7b12a7497 Json formatter should always format context/extra as an object, fixes #1028 2018-06-09 17:02:23 +02:00
Jordi Boggiano
5de973cd33 More 5.3 fixes 2018-06-09 10:23:30 +02:00
Jordi Boggiano
06f7bfb0ee Fix 5.3 build 2018-06-08 23:41:14 +02:00
Jordi Boggiano
518288c5c5 Merge branch '1.x' 2018-06-08 22:32:06 +02:00
Alban Kora
5f8783686e Fixing file rotation when similar files are present 2018-06-08 22:10:08 +02:00
Jordi Boggiano
12c9f58de2 Merge branch '1.x' 2018-06-08 21:08:04 +02:00
Chris Wilkinson
3035d4a251 Fix WhatFailureGroupHandler::handleBatch when the handler has processors 2018-06-08 20:39:17 +02:00
Jordi Boggiano
101daad3ce Merge pull request #1133 from DQNEO/compat-phpunit6
Compatible to phpunit6
2018-06-08 16:44:50 +02:00
Jordi Boggiano
cb7bd1d7f8 Merge pull request #1151 from kopiro/master
Typo on method name
2018-06-07 19:12:01 +02:00
Jordi Boggiano
9a2c747a0a Merge branch '1.x' 2018-06-07 18:30:00 +02:00
George Mponos
68e39bd84f Add a record with an object as context 2018-06-07 18:28:45 +02:00
Flavio Maria De Stefano
cf0ac7e33d Typo on method name 2018-05-18 12:13:16 +02:00
Avtandil Kikabidze
aad9de4d0d Fix unhandled throwable 2018-04-07 04:38:38 +04:00