networkteam / container-ready
Utilities to run Flow and Neos applications in containers
Installs: 360
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:package
Requires
- neos/flow-log: ^7.0 || ^8.0
Requires (Dev)
- phpunit/phpunit: ~9.1
This package is auto-updated.
Last update: 2024-09-25 21:22:32 UTC
README
Utilities to run Flow and Neos applications in containers.
Logging to console
Instead of using log files in containers it's a good idea to log to the console.
This package contains an extended ConsoleBackend
that adds additional information to see the source
of log messages (by adding a configurable prefix).
Example configuration:
Neos: Flow: # Log to STDOUT to have correct 12 factor app behavior for running in a container log: psr3: 'Neos\Flow\Log\PsrLoggerFactory': systemLogger: default: class: Networkteam\ContainerReady\Log\Backend\ConsoleBackend options: prefix: '[System] ' securityLogger: default: class: Networkteam\ContainerReady\Log\Backend\ConsoleBackend options: prefix: '[Security]' # Info level has too much verbosity severityThreshold: '%LOG_NOTICE%' sqlLogger: default: class: Networkteam\ContainerReady\Log\Backend\ConsoleBackend options: prefix: '[SQL] ' i18nLogger: default: class: Networkteam\ContainerReady\Log\Backend\ConsoleBackend options: prefix: '[I18N] '