added formatLog method for logger widget