Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Monolog #30

Merged
merged 2 commits into from
Apr 4, 2011
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public function registerBundles()
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
new Symfony\Bundle\TwigBundle\TwigBundle(),
new Symfony\Bundle\ZendBundle\ZendBundle(),
new Symfony\Bundle\MonologBundle\MonologBundle(),
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
new Symfony\Bundle\DoctrineBundle\DoctrineBundle(),
new Symfony\Bundle\AsseticBundle\AsseticBundle(),
Expand Down
2 changes: 1 addition & 1 deletion app/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'Doctrine\\Common' => __DIR__.'/../vendor/doctrine-common/lib',
'Doctrine\\DBAL' => __DIR__.'/../vendor/doctrine-dbal/lib',
'Doctrine' => __DIR__.'/../vendor/doctrine/lib',
'Zend\\Log' => __DIR__.'/../vendor/zend-log',
'Monolog' => __DIR__.'/../vendor/monolog/src',
'Assetic' => __DIR__.'/../vendor/assetic/src',
'Acme' => __DIR__.'/../src',
));
Expand Down
10 changes: 6 additions & 4 deletions app/config/config_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ web_profiler:
toolbar: true
intercept_redirects: false

zend:
logger:
priority: debug
path: %kernel.logs_dir%/%kernel.environment%.log
monolog:
handlers:
main:
type: stream
path: %kernel.logs_dir%/%kernel.environment%.log
level: debug

assetic:
use_controller: true
11 changes: 11 additions & 0 deletions app/config/config_prod.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
imports:
- { resource: config.yml }

monolog:
handlers:
main:
type: fingerscrossed
action_level: error
handler: nested
nested:
type: stream
path: %kernel.logs_dir%/%kernel.environment%.log
level: debug
4 changes: 4 additions & 0 deletions bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ cd $TARGET
cd twig-extensions && rm -rf README doc phpunit.xml* test
cd $TARGET

# Monolog
cd monolog && rm -rf README.markdown phpunit.xml* tests
cd $TARGET

# cleanup
find . -name .git | xargs rm -rf -
find . -name .gitignore | xargs rm -rf -
Expand Down
6 changes: 2 additions & 4 deletions bin/vendors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,8 @@ install_git twig git://github.com/fabpot/Twig.git
# Twig Extensions
install_git twig-extensions git://github.com/fabpot/Twig-extensions.git

# Zend Framework Log
mkdir -p zend-log/Zend
cd zend-log/Zend
install_git Log git://github.com/symfony/zend-log.git
# Monolog
install_git monolog git://github.com/Seldaek/monolog.git
cd ../..

# FrameworkExtraBundle
Expand Down