01: /*
02: * Copyright 2007 Hippo.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package nl.hippo.cms.brokenlinkchecker.log;
17:
18: /**
19: * <p>
20: * The interface used for logging by the broken link checker.
21: * </p>
22: *
23: * <p>
24: * It is not intended to be a complete logging interface, but it only contains
25: * the methods that are needed by the broken link checker.
26: * </p>
27: */
28: public interface BrokenLinkCheckerLog {
29: /**
30: * <p>
31: * Log a warning message and the cause of the warning.
32: * </p>
33: *
34: * @param message
35: * the message to log.
36: * @param cause
37: * the cause of the warning.
38: */
39: void warning(String message, Exception cause);
40:
41: /**
42: * <p>
43: * Log an error message.
44: * </p>
45: *
46: * @param message
47: * the message to log.
48: */
49: void error(String message);
50:
51: /**
52: * <p>
53: * Log an error message and the cause of the error.
54: * </p>
55: *
56: * @param message
57: * the message to log.
58: * @param cause
59: * the cause of the error.
60: */
61: void error(String message, Exception cause);
62: }
|