Implementation of simple log.