Server — side logging with Go
Even from Javascript frontend
Published in
6 min readDec 29, 2020
- part: creating the service
- part: improving the service
- part: upgrade for web
- part: adding SSE
- part: simple javascript frontend functionality
- part: frontend — backend communication
- part: you are reading it right now
- part: run it all in docker
- part: adding database container
- part: database — service communication
Addition 1: functions, methods, pointers and interfaces
Addition 2: websocket communication
Addition 3: socket communication
Why to write your own logging?
There are ton of loggers in the Go world. Fast, easy, complicated, slow, … you name it.
The reason, why there are so manys is simple: everyone one of us is different and every one of us have different demands. So every one of us see logs as something specific for him, because I, You, Him, Her,… will be those one’s who will go through those logs in case something went wrong. And you want those logs to be the way you want. So it makes sense to make logging your personal thing.