Cumula/framework — Issue #4: Logging in Controllers
Author: mjreich
Created: 2011-10-17 00:47:59+00:00
State: open

Right now, it's not possible to log anything from the controller because the Logger doesn't know to bind to the controllers, as they aren't root components.

A couple of possible options:

1) The parent component of a controller manages the event binding.
2) The logger loops through the autoloader to find all component instances.
3) The logger loops through the EventDispatcher static list of classes and binds to each.

Route 3 would require moving the logging to the EventDispatcher, which is probably a good move as then libraries could make use of logging.