Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (38 sloc) 1.24 KB
monolog:
handlers:
main:
type: fingers_crossed
action_level: error
handler: nested
excluded_http_codes: [404]
nested:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
console:
type: console
process_psr_3_messages: false
channels: ["!event", "!doctrine"]
deprecation:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.deprecations.log"
deprecation_filter:
type: filter
handler: deprecation
max_level: info
channels: ["php"]
# [START add_stackdriver_to_symfony_monolog]
google_cloud:
type: service
id: monolog_psr_batch_logger
services:
# Monolog wrapper
monolog_psr_batch_logger:
class: Monolog\Handler\PsrHandler
arguments: ['@google_cloud_stackdriver_psr_batch_logger']
# PsrBatchLogger
google_cloud_stackdriver_psr_batch_logger:
class: Google\Cloud\Logging\PsrLogger
factory: ['Google\Cloud\Logging\LoggingClient', 'psrBatchLogger']
arguments: ['app']
# [END add_stackdriver_to_symfony_monolog]
You can’t perform that action at this time.