Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e3ebe0e

Browse filesBrowse files
committed
minor #8547 [4.0] Fix default log directory name (yceruto)
This PR was merged into the master branch. Discussion ---------- [4.0] Fix default log directory name Part of #7809 Commits ------- 46e5655 Fix default log directory name
2 parents c40186e + 46e5655 commit e3ebe0e
Copy full SHA for e3ebe0e

File tree

Expand file treeCollapse file tree

12 files changed

+18
-18
lines changed
Filter options
Expand file treeCollapse file tree

12 files changed

+18
-18
lines changed

‎best_practices/creating-the-project.rst

Copy file name to clipboardExpand all lines: best_practices/creating-the-project.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ following:
8787
* ``src/AppBundle/``, stores the Symfony specific code (controllers and routes),
8888
your domain code (e.g. Doctrine classes) and all your business logic;
8989
* ``var/cache/``, stores all the cache files generated by the application;
90-
* ``var/logs/``, stores all the log files generated by the application;
90+
* ``var/log/``, stores all the log files generated by the application;
9191
* ``var/sessions/``, stores all the session files generated by the application;
9292
* ``tests/AppBundle/``, stores the automatic tests (e.g. Unit tests) of the
9393
application.

‎configuration/micro_kernel_trait.rst

Copy file name to clipboardExpand all lines: configuration/micro_kernel_trait.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ hold the kernel. Now it looks like this::
197197
// optional, to use the standard Symfony logs directory
198198
public function getLogDir()
199199
{
200-
return __DIR__.'/../var/logs';
200+
return __DIR__.'/../var/log';
201201
}
202202
}
203203

‎configuration/multiple_kernels.rst

Copy file name to clipboardExpand all lines: configuration/multiple_kernels.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ they don't collide with the files from ``AppKernel``::
9696

9797
public function getLogDir()
9898
{
99-
return dirname(__DIR__).'/var/logs/api';
99+
return dirname(__DIR__).'/var/log/api';
100100
}
101101

102102
public function registerContainerConfiguration(LoaderInterface $loader)

‎configuration/override_dir_structure.rst

Copy file name to clipboardExpand all lines: configuration/override_dir_structure.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ method::
8282

8383
public function getLogDir()
8484
{
85-
return dirname(__DIR__).'/var/'.$this->environment.'/logs';
85+
return dirname(__DIR__).'/var/'.$this->environment.'/log';
8686
}
8787
}
8888

89-
Here you have changed the location of the directory to ``var/{environment}/logs``.
89+
Here you have changed the location of the directory to ``var/{environment}/log``.
9090

9191
.. _override-templates-dir:
9292

‎deployment/azure-website.rst

Copy file name to clipboardExpand all lines: deployment/azure-website.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,9 @@ directory with at least the following contents:
255255
/var/bootstrap.php.cache
256256
/var/cache/*
257257
/app/config/parameters.yml
258-
/var/logs/*
258+
/var/log/*
259259
!var/cache/.gitkeep
260-
!var/logs/.gitkeep
260+
!var/log/.gitkeep
261261
/var/SymfonyRequirements.php
262262
/build/
263263
/vendor/

‎deployment/platformsh.rst

Copy file name to clipboardExpand all lines: deployment/platformsh.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Platform.sh how to deploy your application (read more about
6363
# The mounts that will be performed when the package is deployed.
6464
mounts:
6565
'/var/cache': 'shared:files/cache'
66-
'/var/logs': 'shared:files/logs'
66+
'/var/log': 'shared:files/log'
6767
6868
# The hooks that will be performed when the package is deployed.
6969
hooks:

‎logging.rst

Copy file name to clipboardExpand all lines: logging.rst
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ The configuration for *where* logs are stored lives in the specific
4141
:doc:`environment </configuration/environments>` configuration files: ``config_dev.yml``
4242
and ``config_prod.yml``.
4343

44-
By default, log entries are written to the ``var/logs/dev.log`` file when you're in
45-
the ``dev`` environment. In the ``prod`` environment, logs are written to ``var/logs/prod.log``,
44+
By default, log entries are written to the ``var/log/dev.log`` file when you're in
45+
the ``dev`` environment. In the ``prod`` environment, logs are written to ``var/log/prod.log``,
4646
but *only* during a request where an error or high-priority log entry was made
4747
(i.e. ``error()`` , ``critical()``, ``alert()`` or ``emergency()``).
4848

@@ -77,7 +77,7 @@ to write logs using the :phpfunction:`syslog` function:
7777
# this "file_log" key could be anything
7878
file_log:
7979
type: stream
80-
# log to var/logs/(environment).log
80+
# log to var/log/(environment).log
8181
path: "%kernel.logs_dir%/%kernel.environment%.log"
8282
# log *all* messages (debug is lowest level)
8383
level: debug

‎page_creation.rst

Copy file name to clipboardExpand all lines: page_creation.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ So what about the other directories in the project?
179179

180180
``var/``
181181
This is where automatically-created files are stored, like cache files
182-
(``var/cache/``), logs (``var/logs/``) and sessions (``var/sessions/``).
182+
(``var/cache/``), logs (``var/log/``) and sessions (``var/sessions/``).
183183

184184
``vendor/``
185185
Third-party (i.e. "vendor") libraries live here! These are downloaded via the `Composer`_

‎quick_tour/the_architecture.rst

Copy file name to clipboardExpand all lines: quick_tour/the_architecture.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ the ``prod`` environment:
280280
$ php bin/console cache:clear --env=prod
281281
282282
When developing a web application, things can go wrong in many ways. The
283-
log files in the ``var/logs/`` directory tell you everything about the requests
283+
log files in the ``var/log/`` directory tell you everything about the requests
284284
and help you fix the problem quickly.
285285

286286
Using the Command Line Interface

‎reference/configuration/kernel.rst

Copy file name to clipboardExpand all lines: reference/configuration/kernel.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ This returns the path to the cache directory. To change it, override the
121121
Log Directory
122122
~~~~~~~~~~~~~
123123

124-
**type**: ``string`` **default**: ``$this->rootDir/logs``
124+
**type**: ``string`` **default**: ``$this->rootDir/log``
125125

126126
This returns the path to the log directory. To change it, override the
127127
:method:`Symfony\\Component\\HttpKernel\\Kernel::getLogDir` method. Read

‎setup/file_permissions.rst

Copy file name to clipboardExpand all lines: setup/file_permissions.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ needed permissions:
3232
.. code-block:: terminal
3333
3434
$ rm -rf var/cache/*
35-
$ rm -rf var/logs/*
35+
$ rm -rf var/log/*
3636
3737
$ HTTPDUSER=$(ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1)
3838
$ sudo chmod +a "$HTTPDUSER allow delete,write,append,file_inherit,directory_inherit" var

‎setup/new_project_svn.rst

Copy file name to clipboardExpand all lines: setup/new_project_svn.rst
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,18 +75,18 @@ with these steps:
7575
.. code-block:: terminal
7676
7777
$ cd myproject/
78-
$ svn add --depth=empty app var var/cache var/logs app/config web
78+
$ svn add --depth=empty app var var/cache var/log app/config web
7979
8080
$ svn propset svn:ignore "vendor" .
8181
$ svn propset svn:ignore "bootstrap*" var/
8282
$ svn propset svn:ignore "parameters.yml" app/config/
8383
$ svn propset svn:ignore "*" var/cache/
84-
$ svn propset svn:ignore "*" var/logs/
84+
$ svn propset svn:ignore "*" var/log/
8585
$ svn propset svn:ignore "*" var/sessions/
8686
8787
$ svn propset svn:ignore "bundles" web
8888
89-
$ svn ci -m "commit basic Symfony ignore list (vendor, var/bootstrap*, app/config/parameters.yml, var/cache/*, var/logs/*, web/bundles)"
89+
$ svn ci -m "commit basic Symfony ignore list (vendor, var/bootstrap*, app/config/parameters.yml, var/cache/*, var/log/*, web/bundles)"
9090
9191
#. The rest of the files can now be added and committed to the project:
9292

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.