I want to know if there is a way to separate warnings and errors that are captured by cmd.StderrPipe function in Go programming language?
So, I’m running a JS script using Go and I need to capture all the logs (info, warning, errors) separately.
StdoutPipe and StderrPipe are very useful to capture the logs but I could not find a way to separate warnings and errors in the StderrPipe.
Thank you