logger: Fixing the bug with redirecting of log output to the standard error

Change-Id: I4f84548643a4ea3b0b1ef8f341e39d01e90eb55b