-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
implement "--log_file" and "--log_dir" for klog #9521
Comments
I see we had a workaround package that we created to fix Glog erroring
but I see after the klog refactor we are importing klog before initflag package (that could be an issue maybe?) I tried deleting the |
I just did a standalone example Cobra+Klog and I noticed running this code does NOT produce any temp file logs AT ALL !!!
that makes me think, is the temp file really created by klog ??? here is the code for the standalone example , same as (this llink)[https://flowerinthenight.com/blog/2019/02/05/golang-cobra-klog] except I made it v2 to match minikube
|
/assign |
@prezha thanks for taking this, please let me know if you go stuck. and please hit me up on slack ! btw I woud like to invite you to minikube office hours this monday ! we have Minikube Crazy Idea event. (to come up with crazy ideas for the next 2 years) |
@medyagh no probs, i will also, thank you for inviting me: i'd love to join minikube office hours on monday and the minikube crazy idea event - sounds like fun ;) |
thank you @medyagh, i'll have a look at that |
I hardcoded this in our code to force log file to be to a specific file,
and makes the log file to append to medya_1.txt we just need to parse this from the flags
however if I pass the same flag to the minikube binary it will not do anything (without that line above)
same with one dash
The text was updated successfully, but these errors were encountered: