View Javadoc

1   /**
2    * Logback: the generic, reliable, fast and flexible logging framework.
3    * 
4    * Copyright (C) 2000-2009, QOS.ch
5    * 
6    * This library is free software, you can redistribute it and/or modify it under
7    * the terms of the GNU Lesser General Public License as published by the Free
8    * Software Foundation.
9    */
10  package ch.qos.logback.classic.util;
11  
12  import ch.qos.logback.classic.PatternLayout;
13  import ch.qos.logback.classic.boolex.JaninoEventEvaluator;
14  import ch.qos.logback.core.AppenderBase;
15  import ch.qos.logback.core.filter.EvaluatorFilter;
16  import ch.qos.logback.core.joran.spi.DefaultNestedComponentRegistry;
17  
18  /**
19   * Contains mappings for the default type of nested components in
20   * logback-classic.
21   * 
22   * @author Ceki Gulcu
23   * 
24   */
25  public class DefaultNestedComponentRules {
26  
27    static public void addDefaultNestedComponentRegistryRules(
28        DefaultNestedComponentRegistry registry) {
29      // if you modify the rules here, then do not forget to modify
30      // SiftingJoranConfigurator as well.
31      registry.add(AppenderBase.class, "layout", PatternLayout.class);
32      registry
33          .add(EvaluatorFilter.class, "evaluator", JaninoEventEvaluator.class);
34  
35    }
36  
37  }