Exemplo n.º 1
0
 /// <summary>
 /// If there are any registered handlers, call them now with message.
 /// </summary>
 /// <param name="message"></param>
 private void OnMessageEventLogged(String message, targetSStrip target)
 {
     if (MessageEventLogged != null)
     {
         MessageEventLogged(message, target);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Here is the main API. Log message as indicated. Method will
 /// prepend date and time and append NewLine to message.
 /// </summary>
 /// <param name="message"></param>
 /// <param name="intent"></param>
 public void logEvent(String message, messageIntent intent, targetSStrip target)
 {
     if (intent == messageIntent.LogFileOnly)
     {
         logEvent(message, 0); //call the method that will
     }
     else if (intent == messageIntent.UserAndLogFile)
     {
         logEvent(message, 0);
         OnMessageEventLogged(message, target);
     }
     else if (intent == messageIntent.UserOnly)
     {
         OnMessageEventLogged(message, target);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// If there are any registered handlers, call them now with message.
 /// </summary>
 /// <param name="message"></param>
 private void OnMessageEventLogged(String message, targetSStrip target)
 {
     if (MessageEventLogged != null) {
         MessageEventLogged(message, target);
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// Here is the main API. Log message as indicated. Method will 
 /// prepend date and time and append NewLine to message.
 /// </summary>
 /// <param name="message"></param>
 /// <param name="intent"></param>
 public void logEvent(String message, messageIntent intent, targetSStrip target)
 {
     if (intent == messageIntent.LogFileOnly) {
         logEvent(message, 0); //call the method that will
     } else if (intent == messageIntent.UserAndLogFile) {
         logEvent(message, 0);
         OnMessageEventLogged(message, target);
     } else if (intent == messageIntent.UserOnly) {
         OnMessageEventLogged(message, target);
     }
 }