org.apache.log4j.Level Maven / Gradle / Ivy
/* * 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
and// 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
,INFO
DEBUGALL
.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; /** TheOFF
has the highest possible rank and is intended to turn off logging. */ final static public Level OFF = null; /** TheFATAL
level designates very severe error events that will presumably lead the application to abort. */ final static public Level FATAL = null; /** TheERROR
level designates error events that might still allow the application to continue running. */ final static public Level ERROR = null; /** TheWARN
level designates potentially harmful situations. */ final static public Level WARN = null; /** TheINFO
level designates informational messages that highlight the progress of the application at coarse-grained level. */ final static public Level INFO = null; /** TheDEBUG
Level designates fine-grained informational events that are most useful to debug an application. */ final static public Level DEBUG = null; /** * TheTRACE
Level designates finer-grained * informational events than theDEBUG
ALL 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 ofdefaultLevel
. */ public static Level toLevel(String sArg, Level defaultLevel) { return null; } }