Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use Logster with https://github.com/lulalala/multi_logger #42

Closed
dmitrypol opened this issue Mar 25, 2016 · 2 comments
Closed

Comments

@dmitrypol
Copy link

I love Logster functionality but I can't use it with MultiLogger. I configured MultiLogger gem like this:

# config/initializers/multie_logger.rb
MultiLogger.add_logger('mylog')

But now I get these:
undefined method `mylog' for #Logster::Logger:0x00000009c11ae8

I tried this config Rails.logger.extend(ActiveSupport::Logger.broadcast(Logster.logger)) but no luck.

I am using Rails 4.1.14.2. Apologies if this is a really silly question but does anyone have suggestions?

@SamSaffron
Copy link
Member

no idea how this multilogger gem works, but logster supports chained stores which allow you to achieve similar results.

@dmitrypol
Copy link
Author

Do you mean I can configure logster to write to different log files so Rails.logger.foobar.info("message here")will go to logs/foobar.log?

I studied the code extensively and still not sure how to do that. Could I trouble you for a hint / code snippet?

@tgxworld tgxworld closed this as completed Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants