▲ | catlifeonmars 2 days ago | |
I’m not sure I understand what you mean by “magic for config”. You create and configure a logger using slog.New(…). You can use the default logger instead, slog.Default(), which is just a global and has a default config. You can also set the default logger using slog.SetDefault(…). It’s extremely unmagical in my opinion. |