Link Search Menu Expand Document

Configuration

You don’t need to use it with Rails, but you still need to run Trifle::Logger.configure.

Callbacks

Callback wrapup is called when tracer finishes. Use this to persist your data in the structure you prefere.

Trifle::Logger.configure do |config|
  config.on(:wrapup) do |tracer|
    LoggerModel.create!(
      key: tracer.key,
      params: tracer.meta,
      data: tracer.data,
      state: tracer.state
    )
  end   
end