First implementation of logger