static void Main(string[] args) { log.Info(1, "Application [" + System.Reflection.Assembly.GetEntryAssembly().GetName().Name + "] Start"); log.Warn(40, "This is a warn message "); log.Info(2, "Application [" + System.Reflection.Assembly.GetEntryAssembly().GetName().Name + "] Stop"); }
/// <summary> /// Log Info Message /// </summary> /// <param name="message">Message</param> public void Info(string message) { _logger.Info(message); }
/// <summary> /// Log Info Message with event id /// </summary> /// <param name="eventId"></param> /// <param name="message">Message</param> static public void Info(int eventId, string message) { EventLogger.Info(eventId, message); }