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

log4r does not support reconfiguring during runtime #33

Open
thatsnotright opened this issue May 19, 2014 · 2 comments
Open

log4r does not support reconfiguring during runtime #33

thatsnotright opened this issue May 19, 2014 · 2 comments

Comments

@thatsnotright
Copy link

I see this noted in the test README, but it is affecting my tests as well. Running in jruby incurs a higher startup cost so I'd rather not have to create a new jruby instance for every test which initializes log4r.

Is there any strategy others have adopted for re-configuring log4r during runtime? I mean a full recreate of the loggers and outputters.

@colbygk
Copy link
Owner

colbygk commented May 30, 2014

Just to clarify: do you want to have the object instances to be fully recreated? Are you trying to recreating the objects using a new instance of the classes?

@thatsnotright
Copy link
Author

I want to be able to reconfigure log4r when the yml config file is changed. log4j has a feature like this and if you use PropertyConfigurator.configureAndWatch it works nicely, and I'd like it in Ruby too.

When I looked in to the code it wasn't obvious to me that it could be reconfigured. I'll try to hack on that and submit a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants