logger.go: Fix ansi stripping on file io.Writer
logger.go: Fix ansi stripping on file io.Writer

Use reflection to check the type of the io.Writer instead of checking for
os.Stdout and the like.

demizer/go-logs