Esempio n. 1
0
        private void LogNConsole(string logText)
        {
            NLogConsole nc = new NLogConsole();

            nc.SetConfigFile();
            nc.WriteLog(logText);
        }
Esempio n. 2
0
        public static void LogNTest()
        {
            //  Class1.Log();
            string fileLogPath = @"D:\hata\110.log";

            NLogFile nf = new NLogFile();

            nf.LogFilePath(fileLogPath);
            nf.SetConfigFile();
            nf.WriteLog("Hello World 12 !");

            NLogConsole nc = new NLogConsole();

            nc.SetConfigFile();
            nc.WriteLog("Hello World !");
        }