Add a control to skip the empty message in log

Removed the possibility to log a empty message in the logger