Implementation of the logger