fix: implemented logMessage (#5), fixed #3