uoregon-libraries / newspaper-curation-app

Suite of front- and back-end tools for the curation of digitized newspaper materials
Apache License 2.0
8 stars 1 forks source link

Replace custom logging with new slog package #276

Open jechols opened 1 year ago

jechols commented 1 year ago

Custom logging served us well for a long time, but there's now a structured logging package in the standard library. It appears to do everything we want and then some. There's an example for wrapping an slog instance (which could help us transition) as well as a guide for building a custom log handler, which could be useful for the combo logging we do for jobs (DB and console output). Or it might be overkill. Either way, worth some research at least.

This would handle part of the needs described in #174