A simple logging interface abstracting logging APIs. In order to be instantiated successfully by LogFactory, classes that implement this interface must have a constructor that takes a single String parameter representing the "name" of this Log. The six logging levels used by L
| 61 | * @version $Id: Log.java,v 1.19 2004/06/06 21:16:04 rdonkin Exp $ |
| 62 | */ |
| 63 | public interface Log { |
| 64 | |
| 65 | // ----------------------------------------------------- Logging Properties |
| 66 | |
| 67 | /** |
| 68 | * <p> Is debug logging currently enabled? |
| 69 | * |
| 70 | * <p> Call this method to prevent having to perform expensive operations |
| 71 | * (for example, <code>String</code> concatenation) |
| 72 | * when the log level is more than debug. |
| 73 | */ |
| 74 | public boolean isDebugEnabled(); |
| 75 | |
| 76 | /** |
| 77 | * <p> Is error logging currently enabled? |
| 78 | * |
| 79 | * <p> Call this method to prevent having to perform expensive operations |
| 80 | * (for example, <code>String</code> concatenation) |
| 81 | * when the log level is more than error. |
| 82 | */ |
| 83 | public boolean isErrorEnabled(); |
| 84 | |
| 85 | /** |
| 86 | * <p> Is fatal logging currently enabled? |
| 87 | * |
| 88 | * <p> Call this method to prevent having to perform expensive operations |
| 89 | * (for example, <code>String</code> concatenation) |
| 90 | * when the log level is more than fatal. |
| 91 | */ |
| 92 | public boolean isFatalEnabled(); |
| 93 | |
| 94 | /** |
| 95 | * <p> Is info logging currently enabled? |
| 96 | * |
| 97 | * <p> Call this method to prevent having to perform expensive operations |
| 98 | * (for example, <code>String</code> concatenation) |
| 99 | * when the log level is more than info. |
| 100 | * |
| 101 | * @return true if info enabled, false otherwise |
| 102 | */ |
| 103 | public boolean isInfoEnabled(); |
| 104 | |
| 105 | /** |
| 106 | * <p> Is trace logging currently enabled? |
| 107 | * |
| 108 | * <p> Call this method to prevent having to perform expensive operations |
| 109 | * (for example, <code>String</code> concatenation) |
| 110 | * when the log level is more than trace. |
| 111 | * |
| 112 | * @return true if trace enabled, false otherwise |
| 113 | */ |
| 114 | public boolean isTraceEnabled(); |
| 115 | |
| 116 | /** |
| 117 | * <p> Is warn logging currently enabled? |
| 118 | * |
| 119 | * <p> Call this method to prevent having to perform expensive operations |
| 120 | * (for example, <code>String</code> concatenation) |
no outgoing calls
no test coverage detected