001    /*
002     * $Id: SimpleLog.java,v 1.2 2014/03/17 20:06:46 oboehm Exp $
003     *
004     * Copyright (c) 2011 by Oliver Boehm
005     *
006     * Licensed under the Apache License, Version 2.0 (the "License");
007     * you may not use this file except in compliance with the License.
008     * You may obtain a copy of the License at
009     *
010     *   http://www.apache.org/licenses/LICENSE-2.0
011     *
012     * Unless required by applicable law or agreed to in writing, software
013     * distributed under the License is distributed on an "AS IS" BASIS,
014     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express orimplied.
015     * See the License for the specific language governing permissions and
016     * limitations under the License.
017     *
018     * (c)reated 09.07.2011 by oliver (ob@oasd.de)
019     */
020    
021    package patterntesting.runtime.log;
022    
023    /**
024     * Before the switch from commons-logging to SLF4J we used the constants from
025     * SimpleLog in some log annotations and log aspects. Because we don't want a
026     * dependency to commons-logging (because of problems of bundling it as OSGi-
027     * package) we must define it now ourself. This is done here.
028     * <p>
029     * The constants are the same as in
030     * {@link org.apache.commons.logging.impl.SimpleLog} so does not matter which
031     * of the SimpleLog constants you use.
032     * </p>
033     *
034     * @author oliver
035     * @since 1.1.1 (09.07.2011)
036     * @see org.apache.commons.logging.impl.SimpleLog
037     */
038    public final class SimpleLog {
039    
040        /** "Trace" level logging. */
041        public static final int LOG_LEVEL_TRACE  = 1;
042        /** "Debug" level logging. */
043        public static final int LOG_LEVEL_DEBUG  = 2;
044        /** "Info" level logging. */
045        public static final int LOG_LEVEL_INFO   = 3;
046        /** "Warn" level logging. */
047        public static final int LOG_LEVEL_WARN   = 4;
048        /** "Error" level logging. */
049        public static final int LOG_LEVEL_ERROR  = 5;
050        /** "Fatal" level logging. */
051        public static final int LOG_LEVEL_FATAL  = 6;
052    
053        /** No need to instantiate it. */
054        private SimpleLog() {}
055    
056    }
057