1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-02-21 13:33:52 +01:00
Sam Minnee 60c96cfa2a Added Logger::setHandlers()
Logger::setHandlers() is intended to help dependency injection systems
that deal more elegantly with property setters than constructor
arguments. Alongside getHandlers(), pushHandler(), popHandler(), it is
a logical addition to the API.

It also attempts to address some possible errors in the format of the
data passed:

 - If a map is passed, the keys are removed, as these aren’t expected
   by Monolog
 - If falsey values are included, these are stripped

It relies on Logger::pushHandler() internally, so that if any special
behaviour is added in the future, this only needs to be added in one
place.
2015-07-28 13:15:02 +12:00
..
2015-07-14 10:26:05 +01:00
2015-07-14 10:26:05 +01:00
2015-07-28 13:15:02 +12:00
2015-07-14 10:26:05 +01:00
2014-03-23 20:50:26 +01:00