When logging to error, error file is not populated, info file is.
	we need to check the condition to skip logs by level - FIXED

A bug that makes log write more than once (as many times as there are
		files) - FIXED

Signed-off-by: Akintayo Abiona Olusegun <akintayo.segun@gmail.com>