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 46e5655

Browse filesBrowse files
committed
Fix default log directory name
1 parent c40186e commit 46e5655
Copy full SHA for 46e5655

File tree

Expand file treeCollapse file tree

12 files changed

+18
-18
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

12 files changed

+18
-18
lines changed
Open diff view settings
Collapse file

‎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
  • Display the source diff
  • Display the rich diff
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.
Collapse file

‎configuration/micro_kernel_trait.rst‎

Copy file name to clipboardExpand all lines: configuration/micro_kernel_trait.rst
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
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

Collapse file

‎configuration/multiple_kernels.rst‎

Copy file name to clipboardExpand all lines: configuration/multiple_kernels.rst
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
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)
Collapse file

‎configuration/override_dir_structure.rst‎

Copy file name to clipboardExpand all lines: configuration/override_dir_structure.rst
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
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

Collapse file

‎deployment/azure-website.rst‎

Copy file name to clipboardExpand all lines: deployment/azure-website.rst
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
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/
Collapse file

‎deployment/platformsh.rst‎

Copy file name to clipboardExpand all lines: deployment/platformsh.rst
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
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:
Collapse file

‎logging.rst‎

Copy file name to clipboardExpand all lines: logging.rst
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
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
Collapse file

‎page_creation.rst‎

Copy file name to clipboardExpand all lines: page_creation.rst
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
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`_
Collapse file

‎quick_tour/the_architecture.rst‎

Copy file name to clipboardExpand all lines: quick_tour/the_architecture.rst
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
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
Collapse file

‎reference/configuration/kernel.rst‎

Copy file name to clipboardExpand all lines: reference/configuration/kernel.rst
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
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

0 commit comments

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