2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.sdc.logging.api;
24 * <p>This interface defines logging as specified by Open OPENECOMP logging requirements.</p>
26 * <p>Formatted messages must follow the <a href="http://www.slf4j.org/api/org/slf4j/helpers/MessageFormatter.html>SLF4J
32 public interface Logger {
36 boolean isMetricsEnabled();
38 void metrics(String msg);
40 void metrics(String msg, Object arg);
42 void metrics(String msg, Object arg1, Object arg2);
44 void metrics(String msg, Object... arguments);
46 void metrics(String msg, Throwable t);
48 boolean isAuditEnabled();
50 void audit(String msg);
52 void audit(String msg, Object arg);
54 void audit(String msg, Object arg1, Object arg2);
56 void audit(String msg, Object... arguments);
58 void audit(String msg, Throwable t);
60 boolean isDebugEnabled();
62 void debug(String msg);
64 void debug(String msg, Object arg);
66 void debug(String msg, Object arg1, Object arg2);
68 void debug(String msg, Object... arguments);
70 void debug(String msg, Throwable t);
72 boolean isInfoEnabled();
74 void info(String msg);
76 void info(String msg, Object arg);
78 void info(String msg, Object arg1, Object arg2);
80 void info(String msg, Object... arguments);
82 void info(String msg, Throwable t);
84 boolean isWarnEnabled();
86 void warn(String msg);
88 void warn(String msg, Object arg);
90 void warn(String msg, Object... arguments);
92 void warn(String msg, Object arg1, Object arg2);
94 void warn(String msg, Throwable t);
96 boolean isErrorEnabled();
98 void error(String msg);
100 void error(String msg, Object arg);
102 void error(String msg, Object arg1, Object arg2);
104 void error(String msg, Object... arguments);
106 void error(String msg, Throwable t);