mardi 4 avril 2023

How to properly create dedicated loggers for desired Ruby on Rails classes, in a nice, compact and generic way?

Everything is in the title but for the sake of it:

The company I work for has a really big Ruby On Rails app. After years of development we realized it lacked of logging. Production incidents were sometimes really hard to track and consequently to resolve.

So there was that issue in our backlog to improve the whole logging system.

I started added custom loggers for classes here and there, when really required but it seemed kind of dumb to copy / paste that piece of logic everywhere.

So i wondered: How to properly create dedicated loggers for desired Ruby on Rails classes, in a nice, compact and generic way ?

Aucun commentaire:

Enregistrer un commentaire