public function register(Application $app)
    {
        $this->config = $app['config']->load('log');

        $handlers = $this->getHandlers($app);
        $app['log'] = $app->share(function ($app) use ($handlers) {
            return new Logger('main', $handlers);
        });

        $app->initializer('Synapse\\Log\\LoggerAwareInterface', function ($object, $app) {
            $object->setLogger($app['log']);
            return $object;
        });
    }