Članci s tagom #logging
-
Self-Explaining PHP: AI triage before you open the log
Every production ERROR triggers a 3-bullet AI summary in Telegram: what happened, why probably, and exactly which file:line to look at first. The analysis arrives before you've opened the log. Cost: ~$0.0001. Latency: 30-60 seconds. No Sentry needed.
-
Sensitive data masking in PHP logs: OIB, IBAN, credit card, email auto-redacted
Shinobi Apps framework Logger: maskSensitiveData() applied once to context before any handler receives it. Two-pass: (1) key-based — SENSITIVE_KEYS list (password/token/secret/api_key/credit_card/ssn/pin/cvv/authorization) → '***MASKED***'. (2) value-based — regex patterns: credit card (13-19 digit groups → ****-****-****-last4), JWT (eyJ.*.* → prefix***JWT_MASKED***), Bearer token (Bearer .{20,} → prefix***MASKED***), hex hash (32+ hex chars → first8***MASKED***). Control-char sanitization on log message string.
-
PHP logging severity as a routing decision: the 3-question framework
With Self-Healing and Self-Explaining in production, every log call has a cost: CRITICAL fires an AI auto-PR pipeline, ERROR fires an AI triage call, WARNING costs nothing but noise. A 3-question decision tree that makes severity selection mechanical rather than stylistic.