mudrd8mz / moodle-tool_pluginskel

Generator of Moodle plugins skeletons
https://moodle.org/plugins/tool_pluginskel
Other
51 stars 46 forks source link

Logger object #2

Closed alexandru-elisei closed 8 years ago

alexandru-elisei commented 8 years ago

May I suggest that we permit the usage of a null logger when creating a new manager instance?

If I don't want any logging done right now I need to create a logger with a stream handler that has the log level 'EMERGENCY'.

mudrd8mz commented 8 years ago

If I don't want any logging

That's not common requirement, quite opposite. in either case, better way is probably to add a line like

$logger->pushHandler(new \Monolog\Handler\NullHandler());
alexandru-elisei commented 8 years ago

Ok, thank you, that works.