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

Logging to the same file from multiple processes #170

Closed
bharathmysore opened this issue Mar 7, 2017 · 1 comment
Closed

Logging to the same file from multiple processes #170

bharathmysore opened this issue Mar 7, 2017 · 1 comment

Comments

@bharathmysore
Copy link

I have a multi process server and want to log entries from all the process to the same file.
I am using 0.3.3 which provides separate log file for each process, in our case the servers are short leaved and we accumulate a lot of small file.

In my envirornment, i can remove the PidHasChanged() and get it working to some extent. Since I have multiple writer and no synchronization between them they may overwrite one another.

Is there any solution to handle this issue ?
Any glog server running locally on my machine, to which i can send the logs over local socket ?
Or any LOCKFILE kind of mechanism

@sergiud sergiud closed this as completed Mar 30, 2021
@sergiud sergiud mentioned this issue May 6, 2021
@Huangyong657
Copy link

excuse me. I would like to ask where is the merge and how could I logging to the same file from multiple processes?
could I change every file's name from every process to the same to solve the problem now?

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

3 participants