using Serilog.Sinks.File;
using System.IO;
using System.Text;

namespace VeloeMinecraftLauncher.Utils.Logger
{
    internal class CaptureFilePathHook : FileLifecycleHooks
    {
        public string? Path { get; private set; }

        public override Stream OnFileOpened(string path, Stream underlyingStream, Encoding encoding)
        {
            Path = path;
            return base.OnFileOpened(path, underlyingStream, encoding);
        }
    }
}
