goma / goma-logging
Goma logging gives some abilities for logging. It automatically adds output-logging if environment is command line.
Installs: 1 735
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.5.0
- goma/goma-env: dev-master
- goma/goma-test-core: dev-master
This package is auto-updated.
Last update: 2024-04-15 22:42:27 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