using System.Collections.Generic;

namespace ZB.MOM.WW.MxGateway.Worker.Bootstrap;

public interface IWorkerLogger
{
    /// <summary>
    /// Logs an informational event with fields.
    /// </summary>
    /// <param name="eventName">Event name.</param>
    /// <param name="fields">Event fields.</param>
    void Information(string eventName, IReadOnlyDictionary<string, object?> fields);

    /// <summary>
    /// Logs an error event with fields.
    /// </summary>
    /// <param name="eventName">Event name.</param>
    /// <param name="fields">Event fields.</param>
    void Error(string eventName, IReadOnlyDictionary<string, object?> fields);
}
