Skip to content

docs: v5.1 upgrade notes for the eager file open and Rails Semantic Logger v5.1 - #382

Merged
reidmorrison merged 1 commit into
mainfrom
docs/v5.1-upgrade-notes
Jul 20, 2026
Merged

docs: v5.1 upgrade notes for the eager file open and Rails Semantic Logger v5.1#382
reidmorrison merged 1 commit into
mainfrom
docs/v5.1-upgrade-notes

Conversation

@reidmorrison

Copy link
Copy Markdown
Owner

The v5.1 upgrade section covered only the appender deprecations. This documents the file appender's eager open as well, and adds the matching upgrade notes for the companion gem's v5.1 release.

upgrading.md

The eager open changes observable behavior, so it belongs in the upgrade notes:

  • A bad path or insufficient permissions now raises from SemanticLogger.add_appender in the calling thread, instead of surfacing later on the appender thread while messages are lost
  • The log file is created as soon as the appender is added, even if nothing has been logged yet, matching the standard Ruby and Rails loggers

Also flags the case worth reviewing: code that adds appenders inside a rescue or a conditional written on the assumption that creation could never fail.

The section intro was rewritten, since it opened with "v5.1 deprecates several legacy appenders and one appender option" and that is no longer the whole story.

rails.md

New "Upgrading to v5.1" section for rails_semantic_logger v5.1, covering:

  • The boot-time fallback that the eager open makes reachable: a log file that cannot be opened is now caught during boot and the app falls back to standard error at :warn. Previously the app booted against an appender that silently dropped every message, so anyone who has been running with an unwritable log path without noticing will find out on upgrade.
  • Sidekiq v4/v5/v6 support removal, and the two Sidekiq 8 settings now honored (logged_job_attributes, skip_default_job_logging).

I checked the rest of rails.md against the v5.1 deprecations while I was in there: it never mentions the :sentry or :new_relic appenders, and its one Elasticsearch example already omits type:, so nothing there went stale.

llms-full.txt regenerated via bundle exec rake llms_full.

Also carries a small CLAUDE.md edit recording the rubocop_todo burndown result (32 -> 27 cops).

The matching gem release is reidmorrison/rails_semantic_logger#324.

🤖 Generated with Claude Code

…ic Logger v5.1

The v5.1 upgrade section covered only the appender deprecations. Document the
file appender's eager open too, since it changes observable behavior: a bad log
path now raises from add_appender in the calling thread, and the log file is
created as soon as the appender is added rather than on first write.

rails.md: add an "Upgrading to v5.1" section for the companion gem's matching
release, covering the boot-time fallback that the eager open makes reachable and
the removal of Sidekiq v4/v5/v6 support.

Also record the rubocop_todo burndown result in CLAUDE.md, and regenerate
llms-full.txt.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@reidmorrison
reidmorrison merged commit 166a6e2 into main Jul 20, 2026
10 checks passed
@reidmorrison
reidmorrison deleted the docs/v5.1-upgrade-notes branch July 20, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant