Wrote a simple logger