[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-logging-lib / openecomp-sdc-logging-api / src / main / java / org / openecomp / sdc / logging / api / Logger.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.sdc.logging.api;
22
23 /**
24  * <p>This interface defines logging as specified by Open OPENECOMP logging requirements.</p>
25  *
26  * <p>Formatted messages must follow the <a href="http://www.slf4j.org/api/org/slf4j/helpers/MessageFormatter.html>SLF4J
27  * format</a>.</p>
28  *
29  * @author evitaliy
30  * @since 13/09/2016.
31  */
32 public interface Logger {
33
34     String getName();
35
36     boolean isMetricsEnabled();
37
38     void metrics(String msg);
39
40     void metrics(String msg, Object arg);
41
42     void metrics(String msg, Object arg1, Object arg2);
43
44     void metrics(String msg, Object... arguments);
45
46     void metrics(String msg, Throwable t);
47
48     boolean isAuditEnabled();
49
50     void audit(String msg);
51
52     void audit(String msg, Object arg);
53
54     void audit(String msg, Object arg1, Object arg2);
55
56     void audit(String msg, Object... arguments);
57
58     void audit(String msg, Throwable t);
59
60     boolean isDebugEnabled();
61
62     void debug(String msg);
63
64     void debug(String msg, Object arg);
65
66     void debug(String msg, Object arg1, Object arg2);
67
68     void debug(String msg, Object... arguments);
69
70     void debug(String msg, Throwable t);
71
72     boolean isInfoEnabled();
73
74     void info(String msg);
75
76     void info(String msg, Object arg);
77
78     void info(String msg, Object arg1, Object arg2);
79
80     void info(String msg, Object... arguments);
81
82     void info(String msg, Throwable t);
83
84     boolean isWarnEnabled();
85
86     void warn(String msg);
87
88     void warn(String msg, Object arg);
89
90     void warn(String msg, Object... arguments);
91
92     void warn(String msg, Object arg1, Object arg2);
93
94     void warn(String msg, Throwable t);
95
96     boolean isErrorEnabled();
97
98     void error(String msg);
99
100     void error(String msg, Object arg);
101
102     void error(String msg, Object arg1, Object arg2);
103
104     void error(String msg, Object... arguments);
105
106     void error(String msg, Throwable t);
107 }