public static void LogMessaging(Message m, BotIdentifier botId, bool sending) { var messageType = m.GetType().Name; var bid = botId.ToString(); Logger.Verbose("[{0}] {1} {2,-24} {3,-5} {4} ", sending ? "S" : "R", sending ? "--->" : "<---", messageType, sending ? "to" : "from", bid.Substring(0, Math.Min(12, bid.Length)) ); }
private string GetConfigFileNameFor(BotIdentifier botId) { return("_tmp" + botId.ToString().Substring(0, 10)); }