1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-07-31 10:20:14 +02:00
Commit Graph

1380 Commits

Author SHA1 Message Date
Jordi Boggiano
bee4d493ff Merge pull request #658 from bd808/issues/657
Optionally reduce timestamp resolution for performance
2015-10-26 09:46:15 +00:00
Bryan Davis
4e69837afc Optionally reduce timestamp resolution for performance
Introduce a new `useMicrosecondTimestamps()` method to Logger that
allows runtime selection of whether or not to create microsecond
resolution timestamps for log records.

Generating microsecond resolution timestamps by calling
`microtime(true)`, formatting the result via `sprintf()` and then
parsing the resulting string via `DateTime::createFromFormat` can incur
a measurable runtime overhead vs simple usage of `new DateTime` to
capture a second resolution timestamp in systems which generate a large
number of log events.

The default behavior of generating high precision timestamps remains the
same, but may be changed in a future release. Users requiring high
precision timestamps are encouraged to explicitly call
`Monolog\Logger::useMicrosecondTimestamps(true)` in their setup code.

Closes #657
2015-10-25 15:13:43 -06:00
Anton Sergeyev
f19d9ce9a1 #673 Fix fatal error while normalizing with __toString method which may throw an exception 2015-10-25 22:44:00 +06:00
Jordi Boggiano
3d779cc34d Allow extending Monolog\Logger::$logLevels 2015-10-24 13:11:41 +01:00
Jordi Boggiano
337a1d12f7 Merge pull request #669 from afoeder/patch-1
[TASK] CGL fix
2015-10-24 13:08:47 +01:00
mtopolski
2ae6b3338b camelcase 2015-10-22 11:12:48 -07:00
mtopolski
c65aa23536 added param in InstrospectionProcessor __construct to allow stacktrace offset 2015-10-22 10:34:56 -07:00
Adrian Föder
4a1429e573 [TASK] CGL fix
This replaces a double-quote occurrence with
a single-quote one to comply with the CGL
as well as fixing an escaping mistake.
2015-10-19 12:25:21 +02:00
Danilo Silva
6f19ba38ad added a test on writingTimeout setter and getter methods 2015-10-19 12:21:41 +02:00
Danilo Silva
5c129a7f7f Avoid infinite loops when no data is written on a socket for a time greater than writingTimeout settings 2015-10-19 12:02:32 +02:00
Jordi Boggiano
fa74e171dc Merge pull request #661 from pomaxa/isset
fix CubeHandler http connection and few small updates
2015-10-14 14:30:00 +01:00
Jordi Boggiano
d0f441e8b0 Merge pull request #654 from dracony/patch-1
Reduce memory consumption of the debug_backtrace call
2015-10-14 14:26:36 +01:00
Jordi Boggiano
80c4bfb9fd Restore filtering behavior, refs #663 2015-10-14 14:12:50 +01:00
Jordi Boggiano
0a2e4237d3 Allow overriding of extra fields and configuring them fully in the constructor, fixes #663 2015-10-14 14:09:16 +01:00
Jordi Boggiano
bee7f0dc9c Update changelog 1.17.2 2015-10-14 13:51:02 +01:00
Jordi Boggiano
ce293c745a Do not assume we have a Logger in ErrorHandler, fixes #666 2015-10-14 13:47:31 +01:00
Jordi Boggiano
5405308eb1 Fix raven tests 2015-10-09 18:21:34 +01:00
pomaxa
fc077b8172 * fix var passed to curl::execute
* phpdoc
* remove defining null for class props.
2015-09-30 01:08:08 +03:00
pomaxa
5b05c66429 php doc for throw exception 2015-09-30 00:53:37 +03:00
pomaxa
108bcff409 simplify isset/unset 2015-09-30 00:35:33 +03:00
Jordi Boggiano
3d3feb1673 Merge pull request #656 from bd808/linter
Add linting to Travis tests
2015-09-29 10:34:13 +01:00
Bryan Davis
95d1370eb3 Add linting to Travis tests
Protect against syntax compatibility issues such as the non-5.3
compatible array syntax corrected in 5785a9a by running a linter during
Travis CI testing for pull requests.

Closes #655
2015-09-27 13:24:10 -06:00
dracony
cf2faeb3b7 Reduce memory consumption of the debug_backtrace call
Since the code does not need neither the 'object' not 'args' keys from backtrace, we can save some memory by not requesting them.

I have a better idea planned too: first attempt getting the trace with limited back trace (limit to only about 5 results), and get the full one only if those were not enough
2015-09-26 21:53:29 +02:00
Jordi Boggiano
ec0b383ace Merge pull request #647 from rap2hpoutre/patch-1
Use `text` and `title` fields for SlackHandler
2015-09-21 10:25:59 +01:00
Jordi Boggiano
7642aa2ebe Merge pull request #648 from deguif/fix-undeclared-properties
Fixed undeclared properties
2015-09-17 16:29:05 +01:00
François-Xavier de Guillebon
f24867ad06 Fixed undeclared properties 2015-09-17 14:33:27 +02:00
raph
976259bb5b Use text and title fields for SlackHandler
According to slack documentation (https://api.slack.com/docs/attachments),  an attachment may have a title and a text. The log message and title should use these fields. One of the benefits of using these two properties instead of adding a field is that it's shortened (with a "show more" button) and expandable by slack. It adds a bit of hierarchy in the attachement. Message is the content. Extra and context are additional fields.
2015-09-17 09:52:52 +02:00
Jordi Boggiano
ec7f7001bd Merge pull request #644 from a-a-shmelev/bugfix
SwiftMailerHandler bugfix
2015-09-14 16:11:37 +01:00
Aleksei Shmelev
aaa2854b10 SwiftMailerHandler bugfix.
Added generating unique id when building message and test.
2015-09-14 16:37:30 +03:00
Jordi Boggiano
c7d6a9b424 Merge pull request #640 from JeroenDeDauw/fqns
Remove not needed FQNs
2015-09-03 18:16:57 +01:00
jeroendedauw
e915a18c73 Remove not needed FQNs 2015-09-03 19:10:55 +02:00
Jordi Boggiano
5785a9ac4a Fix CS and php5.3 compat 2015-08-31 10:26:07 +01:00
Jordi Boggiano
0524c87587 Update changelog 1.17.1 2015-08-31 10:17:37 +01:00
Jordi Boggiano
18013a5e7d Fix rollbar triggering strict notices 2015-08-31 10:16:39 +01:00
Jordi Boggiano
877ae63171 Update changelog 1.17.0 2015-08-30 12:40:25 +01:00
Jordi Boggiano
841ecbe7f3 Merge pull request #634 from henriquemoody/resource_type
Better normalization for resources
2015-08-30 12:24:10 +01:00
Jordi Boggiano
d4af96813f Merge pull request #636 from jaredm4/master
Add getUid() to UidProcessor
2015-08-27 21:21:13 +01:00
Jordi Boggiano
860658afe1 Merge pull request #637 from jjok/master
Added missing documentation for $version param.
2015-08-27 21:19:45 +01:00
Jordi Boggiano
a03ba7c6be Merge pull request #635 from mbrevda/master
Allow extra_data and payload to be sent, too
2015-08-27 21:18:18 +01:00
Jonathan Jefferies
4b9d0e4233 Added missing documentation for $version param. 2015-08-27 12:55:39 +01:00
Moshe Brevda
dce930e43d Fix syntax 2015-08-27 09:47:53 +03:00
Moshe Brevda
fd4687b089 Better variable handling 2015-08-27 09:44:55 +03:00
Jared Markell
3a3d28f91a Add getUid() to UidProcessor 2015-08-24 14:50:30 -07:00
Moshe Brevda
2719cca77f Add payload, too 2015-08-23 02:03:17 +03:00
Moshe Brevda
a4033bf3d6 Pass context to RollBar 2015-08-23 00:06:48 +03:00
Henrique Moody
50fb249739 Better normalization for resources 2015-08-20 15:01:24 -03:00
Jordi Boggiano
d58755629d Merge pull request #631 from prgTW/feat/raven-extra-parameters
RavenHandler supports extra parameters
2015-08-17 17:40:30 +01:00
Tomasz Wójcik
762361fff9 RavenHandler supports extra parameters 2015-08-16 11:13:32 +02:00
Jordi Boggiano
72cb14c704 Merge pull request #630 from prgTW/feat/raven-handles-checksum
RavenHandler handles custom checksums
2015-08-15 18:42:55 +01:00
Tomasz Wójcik
4551b8c63b RavenHandler handles custom checksums 2015-08-15 17:58:48 +02:00