From 6614c0f8def8555165b2a5b3aa64cac15deab64d Mon Sep 17 00:00:00 2001 From: WouterJ Date: Sat, 28 Nov 2015 11:14:54 +0100 Subject: [PATCH] app/logs -> var/logs --- cookbook/console/logging.rst | 2 +- cookbook/deployment/azure-website.rst | 4 ++-- cookbook/logging/monolog.rst | 4 ++-- cookbook/workflow/new_project_svn.rst | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cookbook/console/logging.rst b/cookbook/console/logging.rst index 08781d7901b..4b2c83a0c6d 100644 --- a/cookbook/console/logging.rst +++ b/cookbook/console/logging.rst @@ -65,7 +65,7 @@ container and use it to do the logging:: } Depending on the environment in which you run your command (and your logging -setup), you should see the logged entries in ``app/logs/dev.log`` or ``app/logs/prod.log``. +setup), you should see the logged entries in ``var/logs/dev.log`` or ``var/logs/prod.log``. Enabling automatic Exceptions Logging ------------------------------------- diff --git a/cookbook/deployment/azure-website.rst b/cookbook/deployment/azure-website.rst index a1c8307871a..93a2661ce2a 100644 --- a/cookbook/deployment/azure-website.rst +++ b/cookbook/deployment/azure-website.rst @@ -262,9 +262,9 @@ directory with at least the following contents: /app/bootstrap.php.cache /var/cache/* /app/config/parameters.yml - /app/logs/* + /var/logs/* !var/cache/.gitkeep - !app/logs/.gitkeep + !var/logs/.gitkeep /app/SymfonyRequirements.php /build/ /vendor/ diff --git a/cookbook/logging/monolog.rst b/cookbook/logging/monolog.rst index 28db626cda6..c4e5c3d9a7f 100644 --- a/cookbook/logging/monolog.rst +++ b/cookbook/logging/monolog.rst @@ -39,8 +39,8 @@ to write the logs (the handlers can be shared). the logger will log to. The basic handler is the ``StreamHandler`` which writes logs in a stream -(by default in the ``app/logs/prod.log`` in the prod environment and -``app/logs/dev.log`` in the dev environment). +(by default in the ``var/logs/prod.log`` in the prod environment and +``var/logs/dev.log`` in the dev environment). Monolog comes also with a powerful built-in handler for the logging in prod environment: ``FingersCrossedHandler``. It allows you to store the diff --git a/cookbook/workflow/new_project_svn.rst b/cookbook/workflow/new_project_svn.rst index 9ea1c05b78a..3bf786d7f9f 100644 --- a/cookbook/workflow/new_project_svn.rst +++ b/cookbook/workflow/new_project_svn.rst @@ -75,17 +75,17 @@ with these steps: .. code-block:: bash $ cd myproject/ - $ svn add --depth=empty app var/cache app/logs app/config web + $ svn add --depth=empty app var/cache var/logs app/config web $ svn propset svn:ignore "vendor" . $ svn propset svn:ignore "bootstrap*" app/ $ svn propset svn:ignore "parameters.yml" app/config/ $ svn propset svn:ignore "*" var/cache/ - $ svn propset svn:ignore "*" app/logs/ + $ svn propset svn:ignore "*" var/logs/ $ svn propset svn:ignore "bundles" web - $ svn ci -m "commit basic Symfony ignore list (vendor, app/bootstrap*, app/config/parameters.yml, var/cache/*, app/logs/*, web/bundles)" + $ svn ci -m "commit basic Symfony ignore list (vendor, app/bootstrap*, app/config/parameters.yml, var/cache/*, var/logs/*, web/bundles)" #. The rest of the files can now be added and committed to the project: