Package org.apache.log4j

Examples of org.apache.log4j.AppenderSkeleton.activateOptions()


            // set the threshold
            if (appender instanceof AppenderSkeleton) {
                AppenderSkeleton appenderSkeleton = (AppenderSkeleton) appender;
                appenderSkeleton.setThreshold(Level.toLevel(threshold));
                appenderSkeleton.activateOptions();
            }
        }
    }
   
    public boolean isStratosService() throws Exception {
View Full Code Here


        for(Appender appender:appenderSet){
            if (appender instanceof AppenderSkeleton) {
                AppenderSkeleton appenderSkeleton = (AppenderSkeleton) appender;
                appenderSkeleton.setThreshold(systemLevel);
                appenderSkeleton.setLayout(patternLayout);
                appenderSkeleton.activateOptions();
            }
        }

        // update the appender data stored in the registry
        Collection appenderCollection = registryManager.getAppenders();
View Full Code Here

      for (Appender appender : appenderSet) {
        if (appender instanceof AppenderSkeleton) {
          AppenderSkeleton appenderSkeleton = (AppenderSkeleton) appender;
          appenderSkeleton.setThreshold(systemLevel);
          appenderSkeleton.activateOptions();
        }
      }
    }

    // Update the logger data according to the data stored in the registry.
View Full Code Here

          if (appender instanceof AppenderSkeleton) {
            AppenderSkeleton appenderSkeleton = (AppenderSkeleton) appender;
            appenderSkeleton.setThreshold(Level.toLevel(appenderResource
                .getProperty(LoggingConstants.AppenderProperties.THRESHOLD)));
            appenderSkeleton.activateOptions();
          }
        }
      }
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.