Skip to content
Open
Show file tree
Hide file tree
Changes from 6 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
1 change: 1 addition & 0 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
- front-order
- front-mypage
- front-invoice
- front-cookie-consent
include:
- db: pgsql
database_url: postgres://postgres:password@127.0.0.1:5432/eccube_db
Expand Down
9 changes: 9 additions & 0 deletions app/config/eccube/packages/codeception/monolog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ monolog:
level: debug
formatter: eccube.log.formatter.line
max_files: 10
channels: ['!cookie_consent']
# Cookie consent: 同意操作の証跡を info レベルで専用ファイルへ直接出力する。
cookie_consent:
type: rotating_file
max_files: 365
path: '%kernel.logs_dir%/%kernel.environment%/cookie_consent.log'
formatter: eccube.log.formatter.line
level: info
channels: ['cookie_consent']
console:
type: console
process_psr_3_messages: false
Expand Down
9 changes: 9 additions & 0 deletions app/config/eccube/packages/dev/monolog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ monolog:
level: debug
formatter: eccube.log.formatter.line
max_files: 10
channels: ['!cookie_consent']
# Cookie consent: 同意操作の証跡を info レベルで専用ファイルへ直接出力する。
cookie_consent:
type: rotating_file
max_files: 365
path: '%kernel.logs_dir%/%kernel.environment%/cookie_consent.log'
formatter: eccube.log.formatter.line
level: info
channels: ['cookie_consent']
console:
type: console
process_psr_3_messages: false
Expand Down
2 changes: 1 addition & 1 deletion app/config/eccube/packages/monolog.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
monolog:
channels: ['front', 'admin']
channels: ['front', 'admin', 'cookie_consent']
13 changes: 11 additions & 2 deletions app/config/eccube/packages/prod/monolog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ monolog:
handler: main_rotating_file
excluded_http_codes: [404, 405]
buffer_size: 50
channels: ['!doctrine', '!event', '!php']
channels: ['!doctrine', '!event', '!php', '!cookie_consent']
main_rotating_file:
type: rotating_file
max_files: 60
Expand Down Expand Up @@ -43,9 +43,18 @@ monolog:
path: '%kernel.logs_dir%/%kernel.environment%/admin.log'
formatter: eccube.log.formatter.line
level: warning
# Cookie consent: 同意操作の証跡。fingers_crossed を経由せず info レベルで直接出力する。
# 同意 Cookie の寿命(365日)に合わせて保持し、コア既定ログ(60日)とは分離する。
cookie_consent:
type: rotating_file
max_files: 365
path: '%kernel.logs_dir%/%kernel.environment%/cookie_consent.log'
formatter: eccube.log.formatter.line
level: info
channels: ['cookie_consent']
# Console: WARNING and above only
console:
type: console
process_psr_3_messages: false
channels: ['!event', '!doctrine']
channels: ['!event', '!doctrine', '!cookie_consent']
level: warning
Loading
Loading