Tiger_Log

@api

Tiger_Log — the platform logging facade.

A static facade over Zend_Log (the writers + JSON formatter live in TigerZF; this is the Tiger-platform glue). It gives every subsystem one call —

Tiger_Log::info('intake started', ['chat_id' => $id]); Tiger_Log::warn('otp mismatch', ['identifier' => $email, 'attempts' => 3]); try { … } catch (Throwable $e) { Tiger_Log::error('login failed', ['err' => $e->getMessage()]); }

What the facade adds on top of raw Zend_Log:

  • PLUGGABLE SINK. The writer is chosen by tiger.log.writer (see core.ini): null | errorlog | stderr | stream | syslog | cloudwatch | gcp | azure, or a comma-list to fan out, or any Zend_LogWriter* class name. Unknown/missing (e.g. a cloud writer whose SDK isn't installed) logs one warning and falls back to errorlog — logging never dies.
  • CONFIG-DRIVEN LEVEL. tiger.log.min_level (debug|info|notice|warn|error| crit) — changeable per env or in the config table with no deploy.
  • ENRICHMENT. Every line auto-carries a per-request request_id and, when an identity exists, user_id / org_id / role — so one request (or one tenant's activity) is traceable across lines.
  • NEVER THROWS. A logging failure must not raise a second exception on a caller's error path; it degrades to a raw error_log() line.

Methods

critical()

critical($message, array $context = [])

Log at CRIT severity.

  • $message string — the log message
  • $context array — structured key/value context

error()

error($message, array $context = [])

Log at ERR severity.

  • $message string — the log message
  • $context array — structured key/value context

warn()

warn($message, array $context = [])

Log at WARN severity.

  • $message string — the log message
  • $context array — structured key/value context

info()

info($message, array $context = [])

Log at INFO severity.

  • $message string — the log message
  • $context array — structured key/value context

debug()

debug($message, array $context = [])

Log at DEBUG severity.

  • $message string — the log message
  • $context array — structured key/value context

reset()

reset()

Forget the memoized logger — call after changing config at runtime, or between tests.