lib/timber/contexts/custom.rb in timber-2.0.7 vs lib/timber/contexts/custom.rb in timber-2.0.8
- old
+ new
@@ -1,11 +1,10 @@
module Timber
module Contexts
# Custom contexts allow you to add application specific context not covered elsewhere.
#
# @example Adding a context
- # custom_context = Timber::Contexts::Custom.new(type: :keyspace, data: %{my: "data"})
- # Timber::CurrentContext.with(custom_context) do
+ # logger.with_context(build: {version: "1.0.0"}) do
# # ... anything logged here will have the context ...
# end
class Custom < Context
@keyspace = :custom
\ No newline at end of file