Example #1
0
    private static void LoggingSvc(Conf conf, string status)
    {
        if (status != "running")
        {
            Libs.Abort($"Service \"{conf.ServiceName}\" is not running");
        }

        if (conf.OutFileDir == null)
        {
            Libs.Abort("Error: OutFileDir must not be $NULL");
        }

        Libs.NewThread(() => Libs.MonitorFile(conf.LastLineFile));
        Console.ReadLine();
    }