public static void Main(string[] args) { XmlConfigurator.Configure(); var sample = new SampleClass("sample"); sample.DoSomeSampleStuff(); logger.Info("Info logging"); logger.Debug("Debug message sample"); }