/// <summary> /// Logs an exception. /// </summary> /// <param name="ex">The exception.</param> protected override void LogException(Exception ex) { try { host.LogEntry(ex.ToString(), LogEntryType.Error, null, this, wiki); } catch { } }
/// <summary> /// Logs the warning. /// </summary> /// <param name="message">The message.</param> private void LogWarning(string message) { if (_enableLogging) { _host.LogEntry(message, LogEntryType.Warning, null, this, _wiki); } }
/// <summary> /// Logs a message from this plugin. /// </summary> /// <param name="entryType">Type of the entry.</param> /// <param name="message">The message.</param> /// <param name="args">The args.</param> private void LogEntry(LogEntryType entryType, string message, params object[] args) { string entry = String.Format(message, args); m_Host.LogEntry(entry, entryType, null, this, m_wiki); }