Logging.jl icon indicating copy to clipboard operation
Logging.jl copied to clipboard

Add pid in Logging msg for multithread

Open Thuener opened this issue 8 years ago • 5 comments

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

Thuener avatar Aug 19 '16 14:08 Thuener

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

floswald avatar Nov 21 '16 13:11 floswald

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.

Thuener avatar Nov 21 '16 17:11 Thuener

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

floswald avatar Nov 22 '16 10:11 floswald

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

floswald avatar Nov 22 '16 10:11 floswald

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

Thuener avatar Nov 22 '16 10:11 Thuener