internal static void LogOnServer(string data, LogEventType eventType, string logComponent, string logSuffixName, Guid?transactionId = null) { Log log = PublicFolderMailboxLoggerBase.InitializeServerLogging(logComponent, logSuffixName); LogRowFormatter logRowFormatter = new LogRowFormatter(PublicFolderMailboxLoggerBase.LogSchema); logRowFormatter[2] = eventType; logRowFormatter[5] = data; if (transactionId != null) { logRowFormatter[7] = transactionId; } log.Append(logRowFormatter, 0); }
public virtual void LogEvent(LogEventType eventType, string data, out LogRowFormatter row) { if (string.IsNullOrEmpty(data)) { throw new ArgumentNullException("data"); } Log log = PublicFolderMailboxLoggerBase.InitializeServerLogging(this.logComponent, this.logSuffixName); row = new LogRowFormatter(PublicFolderMailboxLoggerBase.LogSchema); row[2] = eventType; row[3] = this.organizationId.ToString(); row[4] = this.MailboxGuid.ToString(); row[7] = this.TransactionId.ToString(); row[5] = data; log.Append(row, 0); }