implemented simple logger