Jordi Boggiano
b675384799
Merge pull request #1231 from carusogabriel/file-permission
...
Fix files permissions
2018-11-20 00:21:21 +01:00
Jordi Boggiano
6ba1842850
Merge pull request #1230 from carusogabriel/returns
...
Simplify return
2018-11-20 00:15:53 +01: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
Gabriel Caruso
84305769c1
Fix files permissions
2018-11-19 14:04:31 -02:00
Gabriel Caruso
495b2c6049
Simplify return
2018-11-19 14:03:47 -02:00
Jordi Boggiano
1c5b0b8ff4
Update return types
2018-11-19 14:40:54 +01:00
George Mponos
c68b71edeb
Add visibility to constants
2018-11-17 20:38:51 +02:00
George Mponos
9ba4f22832
Reset test handler
2018-11-17 20:30:52 +02:00
Jordi Boggiano
8ef626db19
SignalHandler cleanups
2018-11-04 23:59:01 +01:00
Jordi Boggiano
64f6dc944a
Type fixes
2018-11-04 23:31:55 +01:00
Jordi Boggiano
e07c948042
Merge branch '1.x', clean up close/reset for 2.0, refs #997
2018-11-04 22:41:52 +01:00
Jordi Boggiano
b80352368c
Add Logger::close and clarify what close and reset do plus
2018-11-04 22:15:25 +01:00
Jordi Boggiano
dddc7ed781
Fix some resettableinterface usages
2018-11-04 19:58:13 +01:00
Jordi Boggiano
36b767dc02
Added some type hints
2018-11-04 19:47:01 +01:00
Jordi Boggiano
0cad7ea76c
Merge branch '1.x'
2018-11-04 19:34:56 +01:00
Jordi Boggiano
712c5dacf6
Make static method static
2018-11-04 19:34:52 +01:00
Jordi Boggiano
dce7d204bf
Merge branch '1.x'
2018-11-04 18:41:07 +01:00
Jordi Boggiano
ceebd568a2
Remove getClass func from Registry as it was moved to Utils class
2018-11-04 18:41:02 +01:00
Jordi Boggiano
073c5d763a
Merge branch '1.x'
2018-11-04 18:40:32 +01:00
Jordi Boggiano
24dafdeb8e
Merge pull request #1117 from RGustBardon/rgb/signal-handler
...
Register signal handlers
2018-11-04 18:28:17 +01:00
Jordi Boggiano
42d84e6a8d
Move getClass method to a Utils class, refs #1190
2018-11-04 18:23:20 +01:00
Jordi Boggiano
ca3813e31f
Merge remote-tracking branch 'nicolas-grekas/anon' into 1.x
2018-11-04 18:00:46 +01:00
Jordi Boggiano
531d05a802
Merge branch '1.x' into resetable
2018-11-04 17:43:01 +01:00
Jordi Boggiano
d64fd101b7
Merge pull request #1188 from nicolas-grekas/raven-url
...
Update Raven client package URL
2018-11-04 17:24:41 +01:00
Jordi Boggiano
6ab058099c
Merge branch '1.x'
2018-11-04 17:18:09 +01:00
Matt K
dd144f7fa2
Added ability to pass in host parameter for LogEntriesHandler, closes #1174 , fixes #1173
2018-11-04 17:16:31 +01:00
Ramil Valitov
e11012dfde
[fix] change private vars to protected
2018-11-04 17:14:32 +01:00
Jordi Boggiano
916b034b2b
Add support for passing sentry contexts through monolog context or extra, closes #1214
2018-11-04 17:14:32 +01:00
Jordi Boggiano
1ee7d42012
Merge pull request #1195 from newclarity/master
...
Updated @see URL for GELF formatter.
2018-11-04 17:12:44 +01:00
Jordi Boggiano
a56adad0c4
Merge pull request #1210 from ottaviano/raven-add-env-support
...
[RavenHandler] Add environment and breadcrumbs support
2018-11-04 16:47:23 +01:00
Jordi Boggiano
a31ec40343
Type hints for browser console handler
2018-11-04 16:44:28 +01:00
Jordi Boggiano
0bcaf7a34c
Type hints for browser console handler
2018-11-04 16:40:26 +01:00
Jordi Boggiano
b0454ee489
Merge branch 'master' into master
2018-11-03 18:06:42 +01:00
Jordi Boggiano
bcc4ecfe33
Removed useless type hints and make sure level is only an int after normalization
2018-11-03 18:03:58 +01:00
Jordi Boggiano
228a763397
After Logger::toMonologLevel string|int is normalized to int
2018-11-03 18:02:37 +01:00
Dimitri Gritsajuk
869ca5963f
[RavenHandler] Add environment and breadcrumbs support
2018-11-02 22:01:16 +01:00
Nicolas Grekas
db8130ce83
Add ProcessorInterface, an optional one to allow labelling Monolog processors
2018-10-12 12:14:11 -07:00
Nicolas Grekas
9117a6c747
Fix displaying anonymous classes
2018-09-24 20:18:56 +02:00
Mike Schinkel
e9dcd8490f
Updated @see URL for GELF formatter.
2018-09-23 23:03:04 -04:00
Avtandil Kikabidze
be5c439167
Add more type hints
2018-09-12 18:20:33 +04:00
Avtandil Kikabidze
8656fb1352
Merge branch 'master' into feature/elasticsearch
2018-09-12 18:08:44 +04:00
Nicolas Grekas
bff2c8488e
Update Raven client package URL
2018-08-09 08:21:24 +02:00
Jordi Boggiano
334b8d8783
More type hints on some handler classes
2018-07-18 09:55:49 +02:00
Kat
dc003d137e
Add docblocks and return type to the FingersCrossed strategy classes.
2018-07-17 17:32:33 +01:00
Kat
10bef97dea
Add scalar hints and return types to the ActivationStrategyInterface interface and its implementations.
2018-07-17 17:25:17 +01:00
Kat
b6b455ed11
Add scalar hints and return types to the SlackRecord handler.
2018-07-17 17:19:56 +01: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
Andrew Smith
c9d15bb808
Add fluent setters for parameters in the slack handler
2018-07-06 11:47:27 +10: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