Added log function

Signed-off-by: Titouan Rigoudy <titouan.rigoudy@gmail.com>