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

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