示例#1
0
        /// <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);
        }
示例#2
0
        /// <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);
        }