logger: Print to stderr if printing to stdout failed
logger: Print to stderr if printing to stdout failed

If we cannot print to standard_io we try to instead print
to standard_error just to make sure that the error log message
is printed.

We know that group_leader will always point to the kernel application
master and thus we will be forwarded to 'user' eventutally, so we
can short circuit there. As a bonus we also now get to know if
user or user_drv has crashed and the io:put_chars call can fail.

vinoski/otp,bjorng/otp,dumbbell/otp,potatosalad/otp,emacsmirror/erlang,potatosalad/otp,vinoski/otp,dumbbell/otp,dumbbell/otp,dumbbell/otp,emacsmirror/erlang,potatosalad/otp,emacsmirror/erlang,dgud/otp,potatosalad/otp,dgud/otp,bjorng/otp,potatosalad/otp,erlang/otp,bjorng/otp,emacsmirror/erlang,dgud/otp,vinoski/otp,dgud/otp,emacsmirror/erlang,dumbbell/otp,dumbbell/otp,emacsmirror/erlang,vinoski/otp,dumbbell/otp,dumbbell/otp,potatosalad/otp,bjorng/otp,bjorng/otp,potatosalad/otp,dgud/otp,emacsmirror/erlang,vinoski/otp,dgud/otp,vinoski/otp,erlang/otp,vinoski/otp,potatosalad/otp,emacsmirror/erlang,erlang/otp,bjorng/otp,vinoski/otp,erlang/otp,dumbbell/otp,bjorng/otp,bjorng/otp,vinoski/otp,vinoski/otp,bjorng/otp,emacsmirror/erlang,dgud/otp,bjorng/otp,erlang/otp,dgud/otp,erlang/otp,potatosalad/otp,erlang/otp,potatosalad/otp,erlang/otp,emacsmirror/erlang,dumbbell/otp,dgud/otp,dgud/otp,erlang/otp,erlang/otp