Skip to content

Commit 96e7fc1

Browse files
committed
Update logs configuration
1 parent 3669fa2 commit 96e7fc1

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

app/config/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ framework:
4848
fragments: ~
4949
http_method_override: true
5050
assets: ~
51+
php_errors:
52+
log: true
5153

5254
# Twig Configuration (used for rendering application templates)
5355
twig:

app/config/config_dev.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,20 @@ web_profiler:
1414
monolog:
1515
handlers:
1616
main:
17-
type: stream
18-
path: "%env(SYMFONY_LOG)%"
19-
level: info
17+
type: stream
18+
path: '%env(LOG_URL)%'
19+
level: debug
20+
channels: ['!event']
2021
console:
21-
type: console
22-
bubble: false
22+
type: console
23+
process_psr_3_messages: false
24+
channels: ['!event', '!doctrine', '!console']
25+
# To follow logs in real time, execute the following command:
26+
# `bin/console server:log -vv`
27+
server_log:
28+
type: server_log
29+
process_psr_3_messages: false
30+
host: 127.0.0.1:9911
2331
# uncomment to get logging in your browser
2432
# you may have to allow bigger header sizes in your Web server configuration
2533
#firephp:

app/config/config_prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ monolog:
1919
handler: nested
2020
nested:
2121
type: stream
22-
path: "%env(SYMFONY_LOG)%"
22+
path: '%env(LOG_URL)%'
2323
level: debug
2424
console:
2525
type: console

app/config/parameters.yml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ parameters:
1212
env(SYMFONY_SECRET): 'secret_value_for_symfony_demo_application'
1313

1414
# Destination for log files; can also be "php://stderr" etc
15-
env(SYMFONY_LOG): '%kernel.logs_dir%/%kernel.environment%.log'
15+
env(LOG_URL): '%kernel.logs_dir%/%kernel.environment%.log'
1616

1717
# this demo application uses an embedded SQLite database to simplify setup.
1818
# in a real Symfony application you probably will use a MySQL or PostgreSQL database

0 commit comments

Comments
 (0)