We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am using redmine:5.1 (alpine) docker image.
redmine:5.1
I want to configure config.log_tags = [:request_id] to send logs to fluentd and collect the requests for opensearch.
config.log_tags = [:request_id]
Adding config.log_tags = [:request_id] to config/additional_environment.rb does not work.
config/additional_environment.rb
And while https://github.com/redmine/redmine/blob/1d1c5c3a2c50ac0e47f15ccbd08f9ec46496a3b3/config/environments/production.rb#L61 would already provide support for an environment variables based usage of STDOUT as logging facility, this line
STDOUT
redmine/5.1/alpine3.20/Dockerfile
Line 88 in 47d9994
So for my scenario i could make it run by creating config/additional_environment.rb with content
config.log_tags = [:request_id] logger = ActiveSupport::Logger.new(STDOUT) logger.formatter = config.log_formatter config.logger = ActiveSupport::TaggedLogging.new(logger)
but I think the correct way would be to remove the line in
RAILS_LOG_TO_STDOUT
The text was updated successfully, but these errors were encountered:
Use existing redmine env var to log to stdout
2f7ad78
Fixes docker-library#345
Successfully merging a pull request may close this issue.
I am using
redmine:5.1
(alpine) docker image.I want to configure
config.log_tags = [:request_id]
to send logs to fluentd and collect the requests for opensearch.Adding
config.log_tags = [:request_id]
toconfig/additional_environment.rb
does not work.And while https://github.com/redmine/redmine/blob/1d1c5c3a2c50ac0e47f15ccbd08f9ec46496a3b3/config/environments/production.rb#L61 would already provide support for an environment variables based usage of
STDOUT
as logging facility,this line
redmine/5.1/alpine3.20/Dockerfile
Line 88 in 47d9994
So for my scenario i could make it run by creating
config/additional_environment.rb
with contentbut I think the correct way would be to remove the line in
redmine/5.1/alpine3.20/Dockerfile
Line 88 in 47d9994
RAILS_LOG_TO_STDOUT
The text was updated successfully, but these errors were encountered: