Logger enhanced for different cases of output.