1 /*
2 * This file is part of AceLogger.
3 *
4 * AceLogger is free software: you can redistribute it and/or modify it under the terms of the GNU
5 * Lesser General Public License as published by the Free Software Foundation, either version 3 of
6 * the License, or (at your option) any later version.
7 *
8 * AceLogger is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
9 * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 * Lesser General Public License for more details.
11 *
12 * You should have received a copy of the GNU Lesser General Public License along with AceLogger.
13 * If not, see <http://www.gnu.org/licenses/lgpl-3.0.html>.
14 */
15 package net.sourceforge.acelogger.constants;
16
17 import net.sourceforge.acelogger.level.LogLevel;
18 import net.sourceforge.acelogger.level.filter.AcceptAllLevelFilter;
19 import net.sourceforge.acelogger.level.filter.AcceptNoneLevelFilter;
20 import net.sourceforge.acelogger.level.filter.LevelFilter;
21
22 /**
23 * This class defines constants related to {@link LevelFilter}.
24 *
25 * @author Zardi (https://sourceforge.net/users/daniel_zardi)
26 * @version 1.0.0
27 * @since 1.0.0
28 */
29 public final class LevelFilterConstants {
30
31 /**
32 * A filter that accepts all levels.
33 */
34 public static final LevelFilter ACCEPT_ALL = new AcceptAllLevelFilter("levelfilter.all");
35
36 /**
37 * A filter that accepts no levels.
38 */
39 public static final LevelFilter ACCEPT_NONE = new AcceptNoneLevelFilter("levelfilter.none");
40
41 /**
42 * Determines the default level, if none is supplied.
43 */
44 public static final LogLevel DEFAULT_LEVEL = LogLevel.INFO;
45
46 /**
47 * This constructor prevents the instantiation of this utility class.
48 *
49 * @since 1.0.0
50 */
51 private LevelFilterConstants() {}
52
53 }