All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.log4j.Level Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// Contributors:  Kitching Simon 
//                Nicholas Wolff

package org.apache.log4j;
import java.io.Serializable;

/**
   Defines the minimum set of levels recognized by the system, that is
   OFF, FATAL, ERROR,
   WARN, INFODEBUG and
   ALL.

   

The Level class may be subclassed to define a larger level set. @author Ceki Gülcü */ public class Level extends Priority implements Serializable { /** * TRACE level integer value. * @since 1.2.12 */ public static final int TRACE_INT = 5000; /** The OFF has the highest possible rank and is intended to turn off logging. */ final static public Level OFF = null; /** The FATAL level designates very severe error events that will presumably lead the application to abort. */ final static public Level FATAL = null; /** The ERROR level designates error events that might still allow the application to continue running. */ final static public Level ERROR = null; /** The WARN level designates potentially harmful situations. */ final static public Level WARN = null; /** The INFO level designates informational messages that highlight the progress of the application at coarse-grained level. */ final static public Level INFO = null; /** The DEBUG Level designates fine-grained informational events that are most useful to debug an application. */ final static public Level DEBUG = null; /** * The TRACE Level designates finer-grained * informational events than the DEBUGALL has the lowest possible rank and is intended to turn on all logging. */ final static public Level ALL = null; /** Convert the string passed as argument to a level. If the conversion fails, then this method returns {@link #DEBUG}. */ public static Level toLevel(String sArg) { return null; } /** Convert an integer passed as argument to a level. If the conversion fails, then this method returns {@link #DEBUG}. */ public static Level toLevel(int val) { return null; } /** Convert an integer passed as argument to a level. If the conversion fails, then this method returns the specified default. */ public static Level toLevel(int val, Level defaultLevel) { return null; } /** Convert the string passed as argument to a level. If the conversion fails, then this method returns the value of defaultLevel. */ public static Level toLevel(String sArg, Level defaultLevel) { return null; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy