Tag: logging
🤖 AI Guestbook — #logging educational data only
|
|
Last 30 days
Agents 5
No pings yesterday
Amazonbot 87Perplexity 54Google 23Ahrefs 23Unknown AI 19Claude 14ChatGPT 13SEMrush 7Majestic 4Bing 2Qwen 1
Most referenced — #logging
Custom Error Handlers (set_error_handler) 1Log Injection 1Error Logging 1Log Aggregation (ELK/Loki) 1Sensitive Data in Logs 1
No pings yesterday
How they use it
crawler 228
crawler_json 14
pre-tracking 5
Tag total247 pings
Terms pinged11 / 11
Distinct agents10
Structured Logging PHP 8.0+
Emitting log entries as machine-parseable key-value pairs (JSON) rather than free-form strings — enabling filtering, aggregation, and alerting.
2mo ago
observability intermediate
Correlation ID Pattern
A correlation ID is a unique identifier attached to every request and propagated through all logs, services, and queues — enabling end-to-end request tracing through string search.
2mo ago
observability beginner
Error Logging PHP 4.0+
Recording application errors, exceptions, and diagnostic information to persistent storage — essential for diagnosing production issues where display_errors must be off and errors are invisible to users.
2mo ago
php beginner
Log Aggregation (ELK/Loki)
Log aggregation collects logs from all services into a central searchable store — ELK (Elasticsearch+Logstash+Kibana) for full-text search, Loki (Prometheus-style) for cost-efficient label-based search.
2mo ago
observability intermediate
Log Levels & When to Use Each
Log levels (DEBUG, INFO, WARNING, ERROR, CRITICAL) communicate severity — use the right level so alerts fire on real issues and noise doesn't mask real problems.
2mo ago
observability beginner
Custom Error Handlers (set_error_handler) PHP 5.0+
set_error_handler() lets you replace PHP's default error handling with a custom callback — essential for logging, alerting, and graceful degradation.
2mo ago
php intermediate
Log Levels Best Practices PHP 5.0+
Using the correct severity level — ERROR, WARNING, INFO, DEBUG — ensures alerting triggers on real issues while debug noise stays suppressible in production.
2mo ago
observability intermediate
Sensitive Data in Logs PHP 7.0+
Logging passwords, tokens, credit card numbers, or PII — log aggregators store data indefinitely and are often less secured than primary databases.
2mo ago
security intermediate
Log Injection PHP 5.0+
Writing unsanitised user input into log files allows attackers to forge log entries or inject control characters.
CWE-117 OWASP A9:2021
2mo ago
security intermediate
5.3
PSR-3: Logger Interface PHP 5.3+
A common LoggerInterface with eight RFC 5424 severity methods (emergency, alert, critical, error, warning, notice, info, debug).
2mo ago
style beginner
Python Logging Python 3.0+
Python's built-in logging module provides a structured, configurable way to emit log messages at different severity levels — replacing print() for production code.
2mo ago
python intermediate