goma / goma-logging
Goma logging gives some abilities for logging. It automatically adds output-logging if environment is command line.
dev-master
2018-03-08 18:05 UTC
Requires
- php: >=5.5.0
- goma/goma-env: dev-master
- goma/goma-test-core: dev-master
This package is auto-updated.
Last update: 2026-03-16 02:33:37 UTC
README
GomaLogging provides logging functionality.
Methods
Logger::log($logString, $level) - Logs information, possible levels:
- Logger::LOG_LEVEL_LOG
- Logger::LOG_LEVEL_ERROR
- Logger::LOG_LEVEL_DEBUG
- Logger::LOG_LEVEL_PROFILE
- Logger::LOG_LEVEL_SLOW_QUERY
Levels can also be used together, for example:
Logger::log("My Log Message", Logger::LOG_LEVEL_DEBUG | Logger::LOG_LEVEL_LOG)
Configuration via composer.json
- goma_log_folder: define own custom log-folder name in goma data directory. Default: logs