Adding logger information in the  constructor