Added implementation of logging system