Sha256: fd3cdf0a71b672fa45dc6a0402b811b474ab041d47f45122fbabbaa40e2e27e7
Contents?: true
Size: 483 Bytes
Versions: 1
Compression:
Stored size: 483 Bytes
Contents
require 'rails' require 'lograge' module Metova module Logger class Railtie < ::Rails::Railtie initializer 'metova.logger' do |app| app.config.log_tags = [ lambda { |req| req.uuid[0..15] } ] end config.lograge.enabled = true config.lograge.custom_options = lambda do |event| { time: event.time, user: event.payload[:user], ip: event.payload[:ip], } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
metova-logger-0.0.4 | lib/metova/logger/railtie.rb |