{"action":"closed","issue":{"url":"https://api.github.com/repos/actindi/act-fluent-logger-rails/issues/19","labels_url":"https://api.github.com/repos/actindi/act-fluent-logger-rails/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/actindi/act-fluent-logger-rails/issues/19/comments","events_url":"https://api.github.com/repos/actindi/act-fluent-logger-rails/issues/19/events","html_url":"https://github.com/actindi/act-fluent-logger-rails/issues/19","id":105763969,"number":19,"title":"ActiveSupport::Logger.broadcast does not work for this plugin","user":{"login":"hitochan777","id":6002787,"avatar_url":"https://avatars.githubusercontent.com/u/6002787?v=3","gravatar_id":"","url":"https://api.github.com/users/hitochan777","html_url":"https://github.com/hitochan777","followers_url":"https://api.github.com/users/hitochan777/followers","following_url":"https://api.github.com/users/hitochan777/following{/other_user}","gists_url":"https://api.github.com/users/hitochan777/gists{/gist_id}","starred_url":"https://api.github.com/users/hitochan777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hitochan777/subscriptions","organizations_url":"https://api.github.com/users/hitochan777/orgs","repos_url":"https://api.github.com/users/hitochan777/repos","events_url":"https://api.github.com/users/hitochan777/events{/privacy}","received_events_url":"https://api.github.com/users/hitochan777/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-09-10T09:00:40Z","updated_at":"2015-12-23T05:05:41Z","closed_at":"2015-12-23T05:05:41Z","body":"When I follow the instruction of this repository's README, what happened is Rails no longer outputs to the default log which is created depending on the environments (e.g, log/development.log, config/production.log, etc) . Since I wanted Rails to output log to the default log file as well, I found [this page](http://railsware.com/blog/2014/08/07/rails-logging-into-several-backends/) and modified `config/environments/production.rb` as follows:\r\n\r\n```uby\r\n  # setting for logging\r\n  config.log_level = :debug # there are six levels (debug info warn error fatal any). In debug mode the app logs everything.\r\n  config.logger.extend ActiveSupport::Logger.broadcast(ActFluentLoggerRails::Logger.new(log_tags: {\r\n      ip: :ip,\r\n      ua: :user_agent,\r\n      uid: ->(request) { request.session[:uid] }\r\n  }))\r\n  config.lograge.enabled = true\r\n  config.lograge.formatter = Lograge::Formatters::Json.new\r\n```\r\n\r\nBut unfortunately this doesn't work since `add` method of `FluentLogger` class does not post logs to fluentd, but `flush` method does, in my opinion. I am not so familiar with rails so maybe my guess is wrong. But can you propose any workaround for this problem?"}}