Exemplo n.º 1
0
        static void Main(string[] args)
        {
            int maxLogLvl = Convert.ToInt32(ConfigurationManager.AppSettings["maxLogLvl"]);
            int dfltLogLvl = Convert.ToInt32(ConfigurationManager.AppSettings["dfltLogLvl"]);

            myCore.ConsoleLogging lHostConsole = new myCore.ConsoleLogging(maxLogLvl, dfltLogLvl);
            myCore.Logging.addLogging(lHostConsole);

            myCore.FileSystemLogging lHostFile = new myCore.FileSystemLogging(
                Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly().Location), "log"),
                "log",
                true,
                10,
                6
            );

            myCore.Logging.addLogging(lHostFile);

            QlikViewExtensionServerLib lib = new QlikViewExtensionServerLib();

            lib.init();
            lib.start();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            int maxLogLvl  = Convert.ToInt32(ConfigurationManager.AppSettings["maxLogLvl"]);
            int dfltLogLvl = Convert.ToInt32(ConfigurationManager.AppSettings["dfltLogLvl"]);

            myCore.ConsoleLogging lHostConsole = new myCore.ConsoleLogging(maxLogLvl, dfltLogLvl);
            myCore.Logging.addLogging(lHostConsole);

            myCore.FileSystemLogging lHostFile = new myCore.FileSystemLogging(
                Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly().Location), "log"),
                "log",
                true,
                10,
                6
                );

            myCore.Logging.addLogging(lHostFile);

            QlikViewExtensionServerLib lib = new QlikViewExtensionServerLib();

            lib.init();
            lib.start();
        }