1/* Copyright (C) 2003 Vladimir Roubtsov. All rights reserved. 2 * 3 * This program and the accompanying materials are made available under 4 * the terms of the Common Public License v1.0 which accompanies this distribution, 5 * and is available at http://www.eclipse.org/legal/cpl-v10.html 6 * 7 * $Id: ILogLevels.java,v 1.1.1.1.2.1 2004/07/16 23:32:29 vlad_r Exp $ 8 */ 9package com.vladium.logging; 10 11// ---------------------------------------------------------------------------- 12/** 13 * An enumeration of log level values used in conjunction with the API in 14 * {@link Logger} 15 * 16 * @see Logger 17 * 18 * @author Vlad Roubtsov, (C) 2001 19 */ 20public 21interface ILogLevels 22{ 23 // public: ................................................................ 24 25 // note: must start with 0 26 27 /** log level excluding all but severe errors */ 28 int SEVERE = 0; // "-silent" 29 /** log level for quieter than normal operation */ 30 int WARNING = 1; // "-quiet" 31 /** default log level */ 32 int INFO = 2; // default 33 /** log level for chattier than normal operation */ 34 int VERBOSE = 3; // "-verbose" 35 36 // debug levels: 37 38 /** debug trace log level */ 39 int TRACE1 = 4; 40 /** finer debug trace log level */ 41 int TRACE2 = 5; 42 /** finest debug trace log level */ 43 int TRACE3 = 6; 44 45 // special constants: 46 47 /** setting log level to NONE disables all logging */ 48 int NONE = -1; 49 /** setting log level to ALL enables all log levels */ 50 int ALL = TRACE3 + 1; 51 52 53 // human readable strings: 54 55 String SEVERE_STRING = "severe"; 56 String SILENT_STRING = "silent"; 57 String WARNING_STRING = "warning"; 58 String QUIET_STRING = "quiet"; 59 String INFO_STRING = "info"; 60 String VERBOSE_STRING = "verbose"; 61 String TRACE1_STRING = "trace1"; 62 String TRACE2_STRING = "trace2"; 63 String TRACE3_STRING = "trace3"; 64 65 String NONE_STRING = "none"; 66 String ALL_STRING = "all"; 67 68} // end of class 69// ---------------------------------------------------------------------------- 70