1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-21 08:36:33 +02:00
Commit Graph

19 Commits

Author SHA1 Message Date
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