How to add date-time to Base.info


#1

Lets say I want the current date time displayed, when I call info

I think I could use

logging(io,kind=:info)

to redirect info messages to another IOStream

But I cannot figure out how to implement this IOStream that will get the message, pre-pend the date time info and then println this
I guess I need to create an IOStream and start an @async Task which listens to the IOStream and then does the work

But how to do this exactly?

Any help appreciated