private static void TraktAPI_OnDataSend(string address, string data) { if (!string.IsNullOrEmpty(data)) { TraktLogger.Debug("Address: {0}, Post: {1}", address, data); } else { TraktLogger.Debug("Address: {0}", address); } }
private static void TmdbAPI_OnDataReceived(string response, HttpWebResponse webResponse) { if (TraktSettings.LogLevel >= 3) { string headers = string.Empty; foreach (string key in webResponse.Headers.AllKeys) { headers += string.Format("{0}: {1}, ", key, webResponse.Headers[key]); } TraktLogger.Debug("Response: {0}, Headers: {{{1}}}", response ?? "null", headers.TrimEnd(new char[] { ',', ' ' })); } }
private static void TraktAPI_OnDataReceived(string response) { TraktLogger.Debug("Response: {0}", response ?? "null"); }