kmsquire / Logging.jl

Logging package for julia
Other
43 stars 26 forks source link

Add pid in Logging msg for multithread #42

Open Thuener opened 8 years ago

Thuener commented 8 years ago

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

floswald commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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

floswald commented 7 years ago

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

Thuener commented 7 years ago

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