Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
43 changes: 43 additions & 0 deletions config.TEMPLATE.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,49 @@
log_web_service_info = Off


;;;;;;;;;;;;;;;;
; Log Settings ;
;;;;;;;;;;;;;;;;

[logs]

; Default logging channel. Available channels:
; - stack: Combines multiple channels (configurable via log_stacks; defaults to single)
; - single: Single log file ({files_dir}/logs/app.log)
; - daily: Daily rotating log files
; - stderr: Output to stderr
; - syslog: System log
; - errorlog: PHP error log
; - null: Discard all logs
log_channel = stack

; Minimum log level to record. Available levels (in order of severity):
; - debug: Detailed debug information
; - info: Interesting events
; - notice: Normal but significant events
; - warning: Exceptional occurrences that are not errors
; - error: Runtime errors that do not require immediate action
; - critical: Critical conditions
; - alert: Action must be taken immediately
; - emergency: System is unusable
log_level = error

; Channels the 'stack' channel fans out to (comma-separated). Only used when
; log_channel = stack. Each entry must be one of the channels listed above
; (single, daily, stderr, syslog, errorlog). Defaults to single.
log_stacks = single

; Number of daily log files to retain before rotation deletes the oldest
; (only applies to the 'daily' channel). Defaults to 30.
; log_daily_days = 30

; Monolog formatter class for the file/stream channels (single, daily, stderr,
; syslog). Leave unset for the default human-readable line format (stack traces
; included). Has no effect on the errorlog or stack channels. See available formatters
; at https://github.com/Seldaek/monolog/blob/main/doc/02-handlers-formatters-processors.md#formatters
; log_formatter = Monolog\Formatter\JsonFormatter


;;;;;;;;;;;;;;;;;;;;;;;
; Job Queues Settings ;
;;;;;;;;;;;;;;;;;;;;;;;
Expand Down
1 change: 1 addition & 0 deletions dbscripts/xml/upgrade.xml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@
<migration class="PKP\migration\upgrade\v3_6_0\I12772_UserCommentForeignKeys" />
<migration class="PKP\migration\upgrade\v3_6_0\I12584_AddPublicationUpdateType" />
<migration class="PKP\migration\upgrade\v3_6_0\I12800_ReviewPublicationAssociationNullable" />
<migration class="PKP\migration\upgrade\v3_6_0\I12841_CreateLogsDirectory" />
<code function="rebuildSearchIndex" />
<note file="docs/release-notes/README-3.6.0" />
</upgrade>
Expand Down
Loading