Esempio n. 1
0
        public void ProcessingFinish(string pName)
        {
            var fileListener = new FileListener(
                new SourceConfig[]
            {
                new SourceConfig()
                {
                    Name     = "NetCoreNpoi",
                    Level    = EventLevel.Informational,
                    Keywords = Events.Keywords.General
                }
            },
                "PrimeOutput.txt");
            var consoleListener = new ConsoleListener(
                new SourceConfig[]
            {
                new SourceConfig()
                {
                    Name     = "NetCoreNpoi",
                    Level    = EventLevel.Informational,
                    Keywords = Events.Keywords.General
                }
            });

            Events.Log.ProcessingFinish(pName);
            consoleListener.Dispose();
            fileListener.Dispose();
        }
Esempio n. 2
0
        public void ProcessErro(string pName, string erroMessage)
        {
            var fileListener = new FileListener(
                new SourceConfig[]
            {
                new SourceConfig()
                {
                    Name     = "NetCoreNpoi",
                    Level    = EventLevel.Error,
                    Keywords = Events.Keywords.PrimeOutput
                }
            },
                "PrimeOutput.txt");

            var consoleListener = new ConsoleListener(
                new SourceConfig[]
            {
                new SourceConfig()
                {
                    Name     = "NetCoreNpoi",
                    Level    = EventLevel.Error,
                    Keywords = Events.Keywords.PrimeOutput
                }
            });

            Events.Log.ProcessErro(pName, erroMessage);
            consoleListener.Dispose();
            fileListener.Dispose();
        }