/// <summary> /// Log messages tagged with error /// </summary> /// <param name="bot"></param> /// <param name="errorMessage"></param> public static void LogError(this NewBot bot, string errorMessage) { var timeStamp = DateTime.Now.ToString(); bot.Print(bot.BotName + "[error] :: " + errorMessage); }
/// <summary> /// Log messages tagged with information /// </summary> /// <param name="bot"></param> /// <param name="message"></param> public static void LogInformation(this NewBot bot, string message) { var timeStamp = DateTime.Now.ToString(); bot.Print(bot.BotName + "[info] :: " + message); }