using EonaCat.LogStack.Core;
using System;

namespace EonaCat.LogStack.Boosters;

// This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/License for full license details.

/// <summary>
/// Base class for boosters that need configuration
/// </summary>
public abstract class BoosterBase : IBooster
{
    protected BoosterBase(string name)
    {
        Name = name ?? throw new ArgumentNullException(nameof(name));
    }

    public string Name { get; }

    public abstract bool Boost(ref LogEventBuilder builder);
}