Working on loger for output messages