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

"opentracing" logger depends on default's logger level #531

Open
TertiumOrganum1 opened this issue Apr 18, 2024 · 0 comments
Open

"opentracing" logger depends on default's logger level #531

TertiumOrganum1 opened this issue Apr 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@TertiumOrganum1
Copy link

TertiumOrganum1 commented Apr 18, 2024

To store trace-logs to different location (or stream) I declare "opentracing" logger, which is used by userver under the hood. But its level field ignored (you may even skip it) because output of traces depends on default logger's level, i.e. you can't set log level to warning, tracing to info separately.

        tracer:
            service-name: $service-name
        logging:
            fs-task-processor: fs-task-processor
            loggers:
                default:
                    file_path: '@stderr'
                    level: info
                    overflow_behavior: discard  # Drop logs if the system is too busy to write them down.
                opentracing:
                    format: ltsv
                    file_path: '@stdout'                    
                    overflow_behavior: discard 

Expected behavior of different loggers - independent level parameter.

@apolukhin apolukhin added the bug Something isn't working label Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants