8000 MonologBundle by Seldaek · Pull Request #111 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

MonologBundle #111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 16 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed typos in previous commits
  • Loading branch information
Seldaek committed Feb 25, 2011
commit 4e7117efff5f7fa6b3d1cd56ddacaa86f908b952
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function load(array $configs, ContainerBuilder $container)
$loader->load('monolog.xml');
$container->setAlias('logger', 'monolog.logger');

$logger = $container->getDefinition('monolog.logger.prototype');
$logger = $container->getDefinition('monolog.logger_prototype');

$handlers = array();
foreach ($config['handlers'] as $name => $handler) {
Expand All @@ -71,7 +71,7 @@ public function load(array $configs, ContainerBuilder $container)
public function buildHandler(ContainerBuilder $container, $name, array $handler)
{
$handlerId = sprintf('monolog.handler.%s', $name);
$definition = new Definition(sprintf('%monolog.handler.%s.class%', $handler['type']));
$definition = new Definition(sprintf('%%monolog.handler.%s.class%%', $handler['type']));
$handler['level'] = is_int($handler['level']) ? $handler['level'] : constant('Monolog\Logger::'.strtoupper($handler['level']));

switch ($handler['type']) {
Expand Down
0