goalert icon indicating copy to clipboard operation
goalert copied to clipboard

Migration from Custom Logger to Log/Slog

Open mastercactapus opened this issue 1 year ago • 0 comments

What problem would you like to solve? Please describe: Our current custom logger, despite its functionality, has caused confusion for new engineers. The standardisation of our logging system could improve understandability and maintainability.

Describe the solution you'd like: A transition from our existing custom logger to the log/slog interface should be made. While keeping logrus as it is used in the background, using the standard log/slog interface will provide more clarity for newer engineers.

Describe alternatives you've considered: The plausible alternative is to stick to our current custom logger. Though it serves its purpose, the introduction of a structured logging package in Go and previous experiences make a shift to log/slog a more attractive option for the times ahead.

Additional context: To facilitate a smooth transition, the initial step should be a comprehensive documentation of the current log approach and flow that includes elements such as config and references, operational detail, and any special features that should be preserved and discussed.

mastercactapus avatar Oct 04 '23 15:10 mastercactapus