Add helper log exception

This commit adds a helper log exception to
avoid duplicate code.

Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@cloudwatt.com>
Change-Id: I37614c25ef714bd8b1d09a4f1e11fe80c9efeb1d