Logs are an integral part of building happy, robust and scalable software, One of the common ways your application communicates back to you is in the form of logs and alerts. With application logs, you can unveil new insights about what is happening in your application in any environment. Logging is language and framework agnostic. You can get started with logging in a matter of minutes with cloud-based SAAS. At THE ICONIC, one of the most popular fashion e-commerce in Australia, we heavily use logging and instrumentation to get insights about our application's operation. In this session, I will uncover logging best practices, some situations where logging helped us find bugs early, solve difficult problems in time and keep the successful business up and running smoothly.
7. “
“Logs are the stream of aggregated, time-ordered
events collected from the output streams of all
running processes and backing services.”
- 12Factor.net
Source: https://www.12factor.net/logs
8. “
“An application log is a file of events that are
logged by a software application. It contains
errors, informational events and warnings.”
- Technopedia
Source: https://www.techopedia.com/definition/1819/application-log
19. Simplified components of logging
Application
generates logs
Software that
parses, analyzes
and shows logsLogs are ingested
Using a library or
over https
Software Engineer
views/searches logs
Local
File /
Stdout Logs are shipped/ingested with an
agent or log shipper
20. Use a trusted logging library
Language Library Github stars
PHP Monolog ~16.0k
TypeScript/JS Winston ~14.2k
Python Native N/A
Note: Don’t forget about monolog handlers and formatters :)
21. Use a trustworthy software to view and search your logs
Self Hosted
SAAS
Cloud
Provider
Based
22. No tail -f ..., a good UI to view/search logs will make your life a lot easier
38. Logs are an integral part of building happy, robust and scalable software
39. Any questions?
THE ICONIC is hiring - Engineering Manager
You can find me at
◉ @geshan (geshan@gmail.com)
◉ Geshan.com.np
◉ Slides: bit.ly/logging-lau
Thanks!
Presentation template by SlidesCarnival