1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-21 16:46:11 +02:00
Commit Graph

28 Commits

Author SHA1 Message Date
Jordi Boggiano
bd7b28e5ee Merge branch '1.x' 2018-06-07 18:49:40 +02:00
Erik Booij
ecdfdc9897 Rename Boolean in phpDocs to bool 2017-11-04 12:14:41 +01:00
Jordi Boggiano
21dde4dedb Move to strict mode and fix tests 2016-05-27 13:44:00 +01:00
Jordi Boggiano
c889fb2648 CS fixes & upgrading cs fixer config 2015-11-18 17:09:46 +00:00
Jordi Boggiano
b8967466bc Combine common syslog handlers functionality, refs #258 2013-10-31 22:17:55 +01:00
Jordi Boggiano
1eed379a3b Define properties 2013-05-03 11:05:12 +02:00
davewwww
12f12f2d4c Update SyslogHandler.php
move openlog() to write() method to use multiple facilities.
2013-05-02 19:32:35 +03:00
AlexeyDsov
a3e5148444 fixing SyslogHandler::getDefaultFormatter format 2012-12-21 13:31:44 +04:00
Jordi Boggiano
9c8db38385 CS fixes 2012-12-14 12:15:30 +01:00
David Zuelke
1feffd31fd add arg docs 2012-08-29 11:23:13 +02:00
David Zuelke
76fb21b31b Allow passing of openlog() options in SyslogHandler ctor 2012-08-29 10:54:14 +02:00
Geoffrey Tran
f8fce6fd54 Update src/Monolog/Handler/SyslogHandler.php
Missing use statement for LineFormatter, which causes a fatal exception.
2012-08-25 12:01:32 -05:00
Alexandru Vilau
0f89a6b267 Improved default line formatter for syslog handler 2012-07-22 04:03:43 +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
Jérôme Macias
be6393348f Removed unuse use statement 2011-11-13 17:17:54 +01:00
Jordi Boggiano
b1a6830a8c Change way of checking for windows 2011-09-17 12:49:55 +02:00
Christophe Coevoet
c1675c59d8 Added the support of a logging context 2011-06-01 00:10:38 +02:00
Christophe Coevoet
0defabb726 Refactored the AbstractHandler to avoid having some dummy write() methods 2011-05-11 18:43:04 +02:00
Jordi Boggiano
d3e89dbed1 Added CRITICAL and ALERT levels 2011-05-02 15:39:46 +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
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