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

Change-Id: I4f84548643a4ea3b0b1ef8f341e39d01e90eb55b
tests: Improving ManagementTool test suite and fixing discovered bugs

Change-Id: I1c7e51cf105544325657825474f9ee85d61396ed
Refs: #2226