Skip to content

Commit

Permalink
configure loghandler
Browse files Browse the repository at this point in the history
  • Loading branch information
joostd committed Sep 17, 2015
1 parent 3e73277 commit 23cc22f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion options.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"translation" => array(
"en" => true,
"nl" => true,
)
),
"loghandler" => new Monolog\Handler\ErrorLogHandler(),
);

// override options locally. TODO merge with config
Expand Down
2 changes: 1 addition & 1 deletion www/saml/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function sign($response, $keyfile, $certfile)
));

$app->register(new Silex\Provider\MonologServiceProvider(), array(
'monolog.handler' => new Monolog\Handler\SyslogHandler('stepup-tiqr'),
'monolog.handler' => $options['loghandler'],
'monolog.name' => 'saml',
));

Expand Down
3 changes: 2 additions & 1 deletion www/tiqr/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ function login( $sessionKey, $userId, $response )
$app->register(new Silex\Provider\TwigServiceProvider(), array(
'twig.path' => __DIR__.'/views',
));

$app->register(new Silex\Provider\MonologServiceProvider(), array(
'monolog.handler' => new Monolog\Handler\SyslogHandler('stepup-tiqr'),
'monolog.handler' => $options['loghandler'],
'monolog.name' => 'authn',
));

Expand Down

0 comments on commit 23cc22f

Please sign in to comment.