01: package org.apache.maven.embedder;
02:
03: /*
04: * Licensed to the Apache Software Foundation (ASF) under one
05: * or more contributor license agreements. See the NOTICE file
06: * distributed with this work for additional information
07: * regarding copyright ownership. The ASF licenses this file
08: * to you under the Apache License, Version 2.0 (the
09: * "License"); you may not use this file except in compliance
10: * with the License. You may obtain a copy of the License at
11: *
12: * http://www.apache.org/licenses/LICENSE-2.0
13: *
14: * Unless required by applicable law or agreed to in writing,
15: * software distributed under the License is distributed on an
16: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17: * KIND, either express or implied. See the License for the
18: * specific language governing permissions and limitations
19: * under the License.
20: */
21:
22: /**
23: * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
24: * @version $Id: MavenEmbedderLogger.java 572408 2007-09-03 19:33:10Z jvanzyl $
25: */
26: public interface MavenEmbedderLogger {
27: int LEVEL_DEBUG = 0;
28:
29: int LEVEL_INFO = 1;
30:
31: int LEVEL_WARN = 2;
32:
33: int LEVEL_ERROR = 3;
34:
35: int LEVEL_FATAL = 4;
36:
37: int LEVEL_DISABLED = 5;
38:
39: void debug(String message);
40:
41: void debug(String message, Throwable throwable);
42:
43: boolean isDebugEnabled();
44:
45: void info(String message);
46:
47: void info(String message, Throwable throwable);
48:
49: boolean isInfoEnabled();
50:
51: void warn(String message);
52:
53: void warn(String message, Throwable throwable);
54:
55: boolean isWarnEnabled();
56:
57: void error(String message);
58:
59: void error(String message, Throwable throwable);
60:
61: boolean isErrorEnabled();
62:
63: void fatalError(String message);
64:
65: void fatalError(String message, Throwable throwable);
66:
67: boolean isFatalErrorEnabled();
68:
69: void setThreshold(int threshold);
70:
71: int getThreshold();
72:
73: void close();
74: }
|