How I log and alert

Logs should be long enough to have all the needed information and short enough not to cause any effect on the system (large log files, etc.). They should also be in a good format for easy traceability and alertness. Below is my current strategy for log and alerting. My current project use Splunk for logs, it supports alert to Slack! How I log NOTE: If you want to log the output/result of a function, log it inside the function, so you don’t have to duplicate that log, also you don’t forgot to add it outside whenever the function is called/used....

August 14, 2024 · 2 min