Ejemplo n.º 1
0
        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");
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Log Info Message
 /// </summary>
 /// <param name="message">Message</param>
 public void Info(string message)
 {
     _logger.Info(message);
 }
Ejemplo n.º 3
0
 /// <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);
 }