Exemplo n.º 1
0
 /// <summary>
 /// Writes a message into the splunkd log.
 /// </summary>
 /// <param name="msg">A message.</param>
 /// <param name="level">Log level. The default value is
 /// <c>LogLevel.Info</c>.
 /// </param>
 private static void Log(string msg, LogLevel level = LogLevel.Info)
 {
     SystemLogger.Write(level, "Script.Run: " + msg);
 }
 /// <summary>
 /// Writes a message to the splunkd log.
 /// </summary>
 /// <param name="message">
 /// A message.
 /// </param>
 /// <param name="level">Log level. The default value is
 /// <c>LogLevel.Info</c>.
 /// </param>
 static async Task LogAsync(string message, LogLevel level = LogLevel.Info)
 {
     await SystemLogger.WriteAsync(level, "Script.Run: " + message);
 }