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

Add pid in Logging msg for multithread #42

Open
Thuener opened this issue Aug 19, 2016 · 5 comments · May be fixed by #43
Open

Add pid in Logging msg for multithread #42

Thuener opened this issue Aug 19, 2016 · 5 comments · May be fixed by #43

Comments

@Thuener
Copy link

Thuener commented Aug 19, 2016

Add pid in the Logging message is an easy way to identify which thread belongs in an multithreaded execution.

Thuener added a commit to Thuener/Logging.jl that referenced this issue Aug 19, 2016
@Thuener Thuener linked a pull request Aug 19, 2016 that will close this issue
@floswald
Copy link

hey, just out of interest: do you know how I can obtain logging output from a worker, i.e. added via addprocs (on the same machine though)? cheers

@Thuener
Copy link
Author

Thuener commented Nov 21, 2016

The only workaround that worked for me was to put the PID of the worker in the message. Using the PID I can identify which worker wrote the message, but I have a unique log file.

@floswald
Copy link

I get no output at all from a worker process. i can see println from workers, but I can't see any @debug().

@floswald
Copy link

scrap that, I found out how it works. but yeah, I agree that the worker identity would be very helpful to see.

@Thuener
Copy link
Author

Thuener commented Nov 22, 2016

After starting the workers you have to call Logging.configure(level=Logging.DEBUG).

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

Successfully merging a pull request may close this issue.

2 participants