private static LogzioAppender SetupAppender(int bufferSize)
        {
            var hierarchy      = (Hierarchy)LogManager.GetRepository(Assembly.GetCallingAssembly());
            var logzioAppender = new LogzioAppender();

            logzioAppender.AddToken("DKJiomZjbFyVvssJDmUAWeEOSNnDARWz");
            logzioAppender.AddListenerUrl(LogzioListenerDummy.DefaultUrl);
            logzioAppender.AddBufferSize(bufferSize);
            hierarchy.Root.AddAppender(logzioAppender);
            hierarchy.Configured = true;
            return(logzioAppender);
        }
Ejemplo n.º 2
0
        private static LogzioAppender SetupAppender(int bufferSize)
        {
            var hierarchy      = (Hierarchy)LogManager.GetRepository(Assembly.GetCallingAssembly());
            var logzioAppender = new LogzioAppender();

            logzioAppender.AddToken("iWnDeXJFJtuEPPcgWRDpkCdkBksbrUAO");
            logzioAppender.AddListenerUrl(LogzioListenerDummy.DefaultUrl);
            logzioAppender.AddBufferSize(bufferSize);
            hierarchy.Root.AddAppender(logzioAppender);
            hierarchy.Configured = true;
            return(logzioAppender);
        }
Ejemplo n.º 3
0
        private LogzioAppender SetupAppender(int bufferSize)
        {
            var hierarchy      = (Hierarchy)LogManager.GetRepository(Assembly.GetCallingAssembly());
            var logzioAppender = new LogzioAppender();

            logzioAppender.AddToken("123456789");
            logzioAppender.AddListenerUrl(_dummy.DefaultUrl);
            logzioAppender.AddBufferSize(bufferSize);
            logzioAppender.ActivateOptions();
            hierarchy.Root.AddAppender(logzioAppender);
            hierarchy.Configured = true;
            return(logzioAppender);
        }