Currently, even if you define your own AbstractLogger and set Base.global_logger(mylogger), worker loggers still prepend " From worker X: to all logs.
My current work-around is doing
using Distributed
function Distributed.redirect_worker_output(ident, stream)
@schedule while !eof(stream)
println(readline(stream))
end
end
using MyPkg
MyPkg.run()
So hurray for JuliaLang/julia#265 and all, but we really need better controls here.
Currently, even if you define your own
AbstractLoggerand setBase.global_logger(mylogger), worker loggers still prepend" From worker X:to all logs.My current work-around is doing
So hurray for JuliaLang/julia#265 and all, but we really need better controls here.