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

how can I use log to a file with roll over #6258

Closed
transfercai opened this issue Jul 4, 2022 · 3 comments · Fixed by #7339
Closed

how can I use log to a file with roll over #6258

transfercai opened this issue Jul 4, 2022 · 3 comments · Fixed by #7339
Labels
enhancement New feature or request

Comments

@transfercai
Copy link

transfercai commented Jul 4, 2022

Is your feature request related to a problem? Please describe.
I used examples/extension to build my own span processor which I want to log context with trace and span into a file. what can i do for this feature?

Describe the solution you'd like
Now i use just "io.opentelemetry.javaagent.slf4j.simpleLogger.logFile" to set my log file, but i need a roll over log.

@transfercai transfercai added the enhancement New feature or request label Jul 4, 2022
@mateuszrzeszutek
Copy link
Member

Hey @transfercai ,
We don't have this feature implemented yet. There are a couple of issues about agent logging: #3413, #1600, #5059

@transfercai
Copy link
Author

Hey @transfercai , We don't have this feature implemented yet. There are a couple of issues about agent logging: #3413, #1600, #5059

Thanks, do we have attempt to do this in the future?

@mateuszrzeszutek
Copy link
Member

Hmm, we haven't planned this for the nearest future -- in fact, we haven't even come to an agreement how this feature's supposed to work yet. I'll add this topic to the next SIG meeting agenda.

In the meantime, you can probably set up a logrotate cron job that'll roll over the agent log files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants