Little optimization, for smaller log files. (based on the idea/solution from @dneustadt)
First optimization: This version removes the "deprecated ..." messages. In our case the log file reached about 10GB within two days with the deprecated messages. After filtering the deprecated messages the log file shrinked to 38 MB.
Second optimization is to split the file into daily files (type stream -> rotating_file)
{SHOPWARE_ROOT}/config/packages/prod/monolog.yaml
monolog:
channels:
- 'deprecation'
handlers:
main:
# type: stream
# path: "%kernel.logs_dir%/%kernel.environment%.log"
type: rotating_file
path: "%kernel.logs_dir%/conf_pkgs_prod_monolog_yaml_MOD_%kernel.environment%.log"
level: debug
channels: ["!event","!doctrine","!deprecation"]
# uncomment to get logging in your browser
# you may have to allow bigger header sizes in your Web server configuration
#firephp:
# type: firephp
# level: info
#chromephp:
# type: chromephp
# level: info
console:
type: console
process_psr_3_messages: false
channels: ["!event", "!doctrine", "!console"]´
@Moderators: Please be kind with me, if my Answer is not 100% perfect. If there is something I can do better, please comment and I will edit/update my solution.