do not add a logger if app logger is empty.

do not add a logger if app logger is empty.

do not add a logger if app logger is empty.

remove not needed checks
merge