timbre 2025-03-07

Hey Folks, I maintain some code written by someone else that uses timbre logging. It was using a pretty old version that I recently bumped to a more modern version. However, there remains some config that is a bit of a mystery. Apparently there used to be an :inherit option you could provide in the config for the :output-fn? I couldn’t find any explanation of what this does (or what it previously did). Just trying to understand what it’s purpose was in our repo.

✅ 1

@cddr Hey there! Timbre’s top-level config has :timestamp-opts and :output-fn options. Appenders can also override these with appender-level :timestamp-opts or :output-fn. If you don’t want an appender to override the top-level opts, you can set these opts to either nil or :inherit. :inherit isn’t documented any more, but is still supported for backwards compatibility. If you see something like {:timestamp-opts :inherit} in an appender, you can just remove the :timestamp-opts key and it’ll be functionally the same.

Hope that helps?