I add Anotar.NLog.Fody weaving il for logging. I got rid of the same line in each classes like {private static Logger logger = LogManager.GetCurrentClassLogger();}