Add logging class to compact example

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>