1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-02-24 15:02:28 +01:00

283 Commits

Author SHA1 Message Date
Christophe Coevoet
e059c441e0 Fixed CS and phpdoc 2011-05-06 19:47:27 +02:00
Jordi Boggiano
d3e89dbed1 Added CRITICAL and ALERT levels 2011-05-02 15:39:46 +02:00
Gyula Sallai
51a94dce2f Merge branches 'mailhandler' and 'master' into mailhandler 2011-05-01 09:10:27 +02:00
Gyula Sallai
d87ba1c6e5 Fixes 2011-04-28 18:02:38 +02:00
Jordi Boggiano
252058251d Fixed previous commit 2011-04-25 15:52:10 +02:00
Jordi Boggiano
9e7471f77e Aligned log level conversion with the one of syslog 2011-04-25 15:49:27 +02:00
Jordi Boggiano
2b1c68e0d0 Make $initialized static
Removed custom writer, overriding is easy enough
CS fixes
Added TestFirePHPHandler class to enable testing of headers
2011-04-25 15:48:52 +02:00
Jordi Boggiano
a0b8f75b2b Revert "Added processIsolation flag to PHPUnit so headers_sent() begins as false for each test"
This reverts commit 6f2c1682a724e0af515a4c9256451cfa60e77637.
2011-04-25 15:41:58 +02:00
Gyula Sallai
a1bc483041 Added SwiftMailerHandler, added write to MailHandler 2011-04-25 01:48:12 +02:00
Eric Clemmons
275084d5d7 Refactored header creation to use $key => $value pairs for easier support for 3rd-party Response objects 2011-04-23 17:52:32 -07:00
Eric Clemmons
6f2c1682a7 Added processIsolation flag to PHPUnit so headers_sent() begins as false for each test 2011-04-23 15:34:29 -07:00
Eric Clemmons
12ab07447d Refactored FirePHPHandler a bit to support Closures & Methods to override how headers are sent.
(Defaults to PHP's `header` function)
2011-04-23 15:33:39 -07:00
Eric Clemmons
92f866b9d6 Added "Functional" web-browser test page to verification
If there's a better way to test this, let me know.  Since the handler reverse-engineers the Wildfire protocol, this was the easiest way to verify functionality.
2011-04-22 14:12:29 -07:00
Eric Clemmons
f158104762 Added tests for WildfireFormatter & FirePHPHandler 2011-04-22 14:12:12 -07:00
Eric Clemmons
0148506b2e Added FirePHPHandler using a WildfireFormatter 2011-04-22 14:10:55 -07:00
Eric Clemmons
031a39410b Updated the README with a note about FirePHPHandler 2011-04-22 14:10:18 -07:00
Gyula Sallai
1279194192 Added an abstract MailHandler class 2011-04-22 17:41:10 +02:00
hidenorigoto
3b54f13e72 fixed StreamHandler close
I encounted the case $this->stream = 0 when close method was called,
I think the caller condition may be wrong in this case.
But stronger check for the $this->stream parameter makes sense I think.
2011-04-17 18:14:46 +09:00
Jordi Boggiano
ea466fa848 Removed second param from processors 2011-04-08 13:53:30 +02:00
Christophe Coevoet
24dc9e91d0 Added a test for the FingersCrossedHandler reset method 2011-04-07 12:54:39 +02:00
Christophe Coevoet
2d959bf8b3 Added a level for the BufferHandler 2011-04-07 12:49:09 +02:00
Jordi Boggiano
0a09d83fb6 Make the AbstractHandler have proper default in case the constructor is overriden and not called 2011-04-06 13:59:00 +02:00
Jordi Boggiano
7fd13f6aec Minor fixes 2011-04-06 13:58:58 +02:00
Jordi Boggiano
a390331a5d Copy paste detected :) 2011-04-06 13:58:57 +02:00
Jordi Boggiano
6a5fabe2bd Fix typos 2011-04-06 13:42:10 +02:00
Christophe Coevoet
3cb3dbdc8f Made the write method protected
Tests are not a good reason to make it public.
2011-04-06 13:22:06 +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
Jordi Boggiano
c6f59a7b7c Gna copy paste typo 2011-04-05 23:40:58 +02:00
Jordi Boggiano
a9fc15a5a9 Fixed typo 2011-04-05 23:39:27 +02:00
Jordi Boggiano
d0fce88274 Merge similar tests together 2011-04-05 23:36:18 +02:00
Jordi Boggiano
189090d971 Simplified RotatingFileHandler a bit 2011-04-05 23:21:29 +02:00
Jordi Boggiano
df1679967c Added tests for RotatingFileHandler 2011-04-05 23:19:59 +02:00
Jordi Boggiano
3b0f738b88 Added docblocks 2011-04-05 22:35:39 +02:00
Jordi Boggiano
35bd8f724b Updated TODO 2011-04-05 22:24:48 +02:00
Jordi Boggiano
45312dfc84 Optimize rotation so it's only done once per day at most 2011-04-05 22:24:39 +02:00
Jordi Boggiano
35dd65dea3 Fix CS 2011-04-05 22:15:22 +02:00
Christophe Coevoet
32d66528b2 Implemented the file rotation 2011-04-05 20:09:34 +02:00
Jordi Boggiano
e20fd0cc08 Minor fixes to merged commit 2011-04-05 10:42:22 +02:00
Jordi Boggiano
51928a2f9e Merge remote branch 'stof/fingerscrossed' 2011-04-05 10:40:10 +02:00
Christophe Coevoet
e32886e26f Fixed callback factory for the FingersCrossedHandler 2011-04-05 10:29:08 +02:00
Christophe Coevoet
b2d356bbf2 Added a BufferHandler to allow batch processing of the records 2011-04-05 09:41:27 +02:00
Jordi Boggiano
b90eddd513 Fix typos 2011-04-03 16:43:49 +02:00
Jordi Boggiano
7f2127b7dc Updated README 2011-03-27 06:23:03 -07:00
Jordi Boggiano
20110bfced Updated README 2011-03-27 06:22:19 -07:00
Jordi Boggiano
d178bdce01 Syslog: moving LOG_LOCAL* out into the constructor for windows compat' 2011-03-23 23:39:00 +01:00
Jordi Boggiano
78d60f9dce Coding style fixes 2011-03-23 23:29:33 +01:00
Sven Paulus
38a4ddf9f2 remove LOG_NDELAY from the openlog() call since the expected behaviour
to get a FALSE returned on connection problems isn't supported by
the underlying POSIX API.
2011-03-22 23:18:13 +01:00
Sven Paulus
d9d0f51238 add SyslogHandler to Monolog
usage example:

   $log = new Logger('application');
   $syslog = new SyslogHandler('myfacility', 'local6');
   $formatter = new LineFormatter("%channel%.%level_name%: %message% %extra%");
   $syslog->setFormatter($formatter);
   $log->pushHandler($syslog);
2011-03-22 14:43:45 +01:00
Christophe Coevoet
7a912a49ee Removed the public keyword in the interface 2011-03-19 23:26:12 +01:00
Christophe Coevoet
3a3c96d6d7 Added some methods in the HandlerInterface and some typehints 2011-03-19 23:07:44 +01:00