Edson Medina
38f8dc52de
Avoid calling expensive methods before checking we need to
2014-12-02 22:07:18 +00: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
Jordi Boggiano
467e30a9c9
Add getters for handlers/processors, fixes #363
2014-05-01 17:55:56 +02:00
Jordi Boggiano
97f79f7ed3
Fix docblock, fixes #358
2014-04-21 20:22:17 +02:00
Michael Grinko
fab4ec2c12
[minor] Indent was fixed
2014-01-15 11:01:53 +02:00
Jordi Boggiano
3926d95f8a
CS fixes
2013-12-26 11:43:12 +01:00
Markus Staab
100a1b01f2
Minor phpdoc fixes
2013-12-26 00:25:22 +01:00
Peter Kokot
97043a326c
logging levels phpdoc added
2013-09-21 23:43:29 +02:00
Jordi Boggiano
e2b412846d
Add API version to Logger class
2013-05-21 20:36:09 +02:00
Jordi Boggiano
7e56792987
Fix docblock
2013-04-23 11:10:54 +02:00
Joshua Jabbour
6a8154756e
Flip getLevels() response.
2013-04-15 12:24:24 -05:00
Joshua Jabbour
85dbaf9733
Add getter to return all supported log levels.
2013-04-15 11:46:35 -05:00
Eduardo Oliveira
f84f58188c
At isHandling remove unused variable on foreach
2013-03-24 12:11:22 +00:00
Jordi Boggiano
9f515d47ce
Add possibility to pass handlers/processors to Logger::__construct, fixes #157
2013-02-13 19:06:07 +01:00
Florin Patan
5191ce91a1
Deferred timezone creation
2013-02-10 12:07:16 +02:00
Jordi Boggiano
7913cd2c4d
Add psr/log compatibility
2013-01-04 17:20:27 +01:00
Jordi Boggiano
cb83512ca5
Make isHandling create the minimum required record
2012-12-21 09:41:30 +01:00
Jordi Boggiano
b23cfd3d6c
Throw an exception on invalid level name
2012-11-14 16:46:10 +01:00
Thomas Rabaix
5e0fabeb0d
Add the timezone in the the \DateTime constructor. While the DateTime object
...
is initialized without the DateTimeZone instance, the underline library
execute a stat('.../Europe/Paris') to check if the OS knows the timezone.
This will improve performance on long run process by avoiding unless i/o calls.
2012-10-24 14:58:02 +02:00
Aizat Faiz
938b608c6c
Use late static binding to allow people to extend Logger
2012-10-19 08:12:34 -07:00
Jimmy Berry
48729c02c8
Correct handler comment.
2012-09-07 23:06:35 -07:00
Jordi Boggiano
6cbdc0410c
Set default timezone on log records, fixes #94
2012-06-26 14:56:24 +02:00
Jordi Boggiano
c8ca42764c
Cosmetic fixes
2012-06-19 20:39:54 +02:00
Jordi Boggiano
61359a972b
Merge remote-tracking branch 'FGM/master'
2012-06-19 20:28:04 +02:00
Jordi Boggiano
da33c84d07
CS fixes
2012-06-14 15:47:01 +02:00
Frederic G. MARAND
07aac12c72
Implement the 8 RFC3164 severity levels instead of just 6.
...
- constants defined for the 2 missing levels: NOTICE and EMERGENCY.
- add<level>() and <level>() convenience methods added.
- TestHandler and tests updated to account for the two extra levels.
- surjective mappings from the RFC3164 to only 6 levels changes to bijective.
- README updated accordingly.
2012-05-28 20:29:27 +02:00
Jordi Boggiano
a6c24f983a
Use non-locale aware version of the float formatter, fixes #65
2012-04-22 18:33:26 +02:00
Chris Sedlmayr
0b073c87ef
A couple of small comment changes to fix some slightly broken English.
...
* Fixes a small typo
* Fixes incorrect indefinite article usage
* Fixes small grammatical error
2012-04-17 21:20:31 +02:00
Matt Lehner
83d23c4024
properly convert from a float to a string, including the digits after the decimal to please createFromFormat
2012-02-24 18:14:06 -05:00
Jordi Boggiano
d784755dcb
Fix datetime creation with microseconds
2012-02-23 11:19:10 +01:00
Matt Lehner
61a49453ed
Add microseconds to the DateTime object
2012-02-22 17:49:17 -05:00
Jordi Boggiano
355123d607
Add isHandling, fixes #53
2012-01-28 14:43:55 +01:00
Christophe Coevoet
10e5ecd409
Added some tests
2011-08-29 15:00:28 +02:00
Artem Nezvigin
f31388ec42
Added logger name getter, Monolog\Logger::getName()
...
Added phpunit.xml to .gitignore to prevent contributors from accidentally commiting theirs.
2011-08-07 16:29:10 -07:00
Jordi Boggiano
1a9c577535
Improved log level descriptions
2011-07-19 23:24:43 +02:00
Jordi Boggiano
cf4240cc51
Ensure processors are valid callables
2011-07-06 15:37:29 +02:00
Christophe Coevoet
0d728feb7c
Fixed forwarding of the context in logging calls
2011-06-01 01:05:23 +02:00
Christophe Coevoet
c1675c59d8
Added the support of a logging context
2011-06-01 00:10:38 +02:00
Jordi Boggiano
d3e89dbed1
Added CRITICAL and ALERT levels
2011-05-02 15:39:46 +02:00
Jordi Boggiano
ea466fa848
Removed second param from processors
2011-04-08 13:53:30 +02:00
Jordi Boggiano
6a5fabe2bd
Fix typos
2011-04-06 13:42:10 +02:00
Christophe Coevoet
87332a3e4e
Added phpdoc for all methods and added the typehint for the FormatterInterface
2011-04-06 00:50:18 +02:00
Matthew Ratzke
019ebad67a
fixed incorect record var
2011-03-01 15:32:22 -07:00
Jordi Boggiano
18d53e0db1
Renamed var back to message where it makes sense
2011-02-25 23:06:36 +01:00
Jordi Boggiano
6c24217c56
Renamed message to record
2011-02-25 23:01:43 +01:00
Jordi Boggiano
efc2bd656b
Added some docs
2011-02-25 22:13:23 +01:00
Jordi Boggiano
903bbd0fd6
Move the stack handling to the Logger class
2011-02-25 22:00:51 +01:00
Jordi Boggiano
1983270611
Partially prevent circular references in the handler chain
2011-02-24 22:14:00 +01:00
Jordi Boggiano
811e6c79d6
Added docblocks and fixed a couple tests
2011-02-22 12:10:54 +01:00
Jordi Boggiano
a426ce2815
Added a Processor stack to the Logger class, added getHandler() to check if any handler is going to handle the message before processing it, handlers are now calling their parent in a chain
2011-02-21 20:38:18 +01:00