wrote simple logger