protoactor-go icon indicating copy to clipboard operation
protoactor-go copied to clipboard

redirect output log

Open notdodo opened this issue 6 years ago • 3 comments

Hi!

Is it possibile to redirect the output of actor logging to stderr or to a file? Something like log.SetOutput(iow).

The problem: using a tui (i.e.: https://github.com/jroimartin/gocui) I cannot redirect or capture the output of the actor log.

EDIT: forgot to mention that I'd prefer a solution using the library instead of redirect the output to another file descriptor (i.e. ./run >& log.txt)

notdodo avatar Nov 06 '17 15:11 notdodo

I need this too.

hulucc avatar Oct 04 '20 10:10 hulucc

You can make a pr for it. https://github.com/AsynkronIT/protoactor-go/blob/dev/log/string_encoder.go#L23

cupen avatar Oct 05 '20 05:10 cupen

I also need this,Logs cannot be integrated into my business. I suggest that can set a logger ,this logger has "debug,info,error..." interface

coverthesea avatar May 27 '21 10:05 coverthesea