Skip to content

Instantly share code, notes, and snippets.

@jdwyah
Created March 18, 2024 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdwyah/de23e3170079fec338798b1c01b7da33 to your computer and use it in GitHub Desktop.
Save jdwyah/de23e3170079fec338798b1c01b7da33 to your computer and use it in GitHub Desktop.
SemanticLogger.sync!
SemanticLogger.default_level = :trace # Prefab will take over the filtering
SemanticLogger.clear_appenders!
SemanticLogger.add_appender(
io: $stdout,
formatter: Rails.env.development? ? :color : :json,
filter: Prefab.log_filter
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment