1  /*
     2   * Copyright the original author or authors.
     3   * 
     4   * Licensed under the MOZILLA PUBLIC LICENSE, Version 1.1 (the "License");
     5   * you may not use this file except in compliance with the License.
     6   * You may obtain a copy of the License at
     7   * 
     8   *      http://www.mozilla.org/MPL/MPL-1.1.html
     9   * 
    10   * Unless required by applicable law or agreed to in writing, software
    11   * distributed under the License is distributed on an "AS IS" BASIS,
    12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13   * See the License for the specific language governing permissions and
    14   * limitations under the License.
    15   */
    16   
    17  import org.as2lib.env.log.LogLevel;
    18  import org.as2lib.env.log.level.AbstractLogLevel;
    19  
    20  /**
    21   * {@code DynamicLogLevel} lets you dynamically create your own levels.
    22   *
    23   * <p>The default levels {@code ALL}, {@code DEBUG, {@code INFO}, {@code WARNING},
    24   * {@code ERROR}, {@code FATAL} and {@code NONE} normally meet all requirements.
    25   * 
    26   * @author Simon Wacker
    27   */
    28  class org.as2lib.env.log.level.DynamicLogLevel extends AbstractLogLevel implements LogLevel {
    29  	
    30  	/** Makes the static variables of the super-class accessible through this class. */
    31  	private static var __proto__:Function = AbstractLogLevel;
    32  	
    33  	/**
    34  	 * Constructs a new {@code DynamicLogLevel} instance.
    35  	 *
    36  	 * @param level the level represented by a number
    37  	 * @param name the name of the level
    38  	 * @throws IllegalArgumentException if passed-in {@code level} is {@code null} or
    39  	 * {@code undefined}
    40  	 */
    41  	public function DynamicLogLevel(level:Number, name:String) {
    42  		super (level, name);
    43  	}
    44  	
    45  }