1 /* $RCSfile$ 2 * $Author$ 3 * $Date$ 4 * $Revision$ 5 * 6 * Copyright (C) 2005 The Jmol Development Team 7 * 8 * Contact: jmol-developers@lists.sf.net 9 * 10 * This library is free software; you can redistribute it and/or 11 * modify it under the terms of the GNU Lesser General Public 12 * License as published by the Free Software Foundation; either 13 * version 2.1 of the License, or (at your option) any later version. 14 * 15 * This library is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 * Lesser General Public License for more details. 19 * 20 * You should have received a copy of the GNU Lesser General Public 21 * License along with this library; if not, write to the Free Software 22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 23 * 02110-1301, USA. 24 */ 25 26 package org.jmol.util; 27 28 /** 29 * Interface used for the logging mechanism. 30 */ 31 public interface LoggerInterface { 32 33 /** 34 * Writes a log at DEBUG level. 35 * 36 * @param txt String to write. 37 */ debug(String txt)38 public void debug(String txt); 39 40 /** 41 * Writes a log at INFO level. 42 * 43 * @param txt String to write. 44 */ info(String txt)45 public void info(String txt); 46 47 /** 48 * Writes a log at WARN level. 49 * 50 * @param txt String to write. 51 */ warn(String txt)52 public void warn(String txt); 53 54 /** 55 * Writes a log at WARN level with detail on exception. 56 * 57 * @param txt String to write. 58 * @param e Exception. 59 */ warnEx(String txt, Throwable e)60 public void warnEx(String txt, Throwable e); 61 62 /** 63 * Writes a log at ERROR level. 64 * 65 * @param txt String to write. 66 */ error(String txt)67 public void error(String txt); 68 69 /** 70 * Writes a log at ERROR level with detail on exception. 71 * 72 * @param txt String to write. 73 * @param e Exception. 74 */ errorEx(String txt, Throwable e)75 public void errorEx(String txt, Throwable e); 76 77 /** 78 * Writes a log at FATAL level. 79 * 80 * @param txt String to write. 81 */ fatal(String txt)82 public void fatal(String txt); 83 84 /** 85 * Writes a log at ERROR level with detail on exception. 86 * 87 * @param txt String to write. 88 * @param e Exception. 89 */ fatalEx(String txt, Throwable e)90 public void fatalEx(String txt, Throwable e); 91 } 92