write console output according to status severity

not sure if writing status to `STDERR` is mandatory on your side, but it can be a problem in my case, I'm using a logging system linked with `syslog`.