Esempio n. 1
0
    /// <summary>
    /// Writes the specified action.
    /// </summary>
    /// <param name="entityType">Type of the entity.</param>
    /// <param name="entityId">The entity id.</param>
    /// <param name="action">The action.</param>
    /// <param name="levelCode">The level code.</param>
    /// <param name="result">The result.</param>
    public virtual void Write([NotNull] string entityType, string entityId, [NotNull] string action, [NotNull] string levelCode, [NotNull] string result)
    {
      Assert.ArgumentNotNull(entityType, "entityType");
      Assert.ArgumentNotNull(action, "action");
      Assert.ArgumentNotNull(levelCode, "levelCode");
      Assert.ArgumentNotNull(result, "result");

      Assert.IsNotNull(this.Provider, ProviderNotSet);

      LogEntry logEntry = new LogEntry
      {
        EntityType = entityType,
        EntityID = entityId,
        Action = action,
        LevelCode = levelCode,
        Result = result,
        Details = new LogEntryDetails(action),
      };

      this.Write(logEntry);
    }
 /// <summary>
 /// Writes data to log.
 /// </summary>
 /// <param name="logEntry">Order Management Log Entry.</param>
 public abstract void AppendEntry(LogEntry logEntry);