2 * Copyright © 2016-2017 European Support Limited
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package org.openecomp.sdc.logging.api;
20 * <p>This interface defines logging as specified by Open OPENECOMP logging requirements.</p>
22 * <p>Formatted messages must follow the <a href="http://www.slf4j.org/api/org/slf4j/helpers/MessageFormatter.html>SLF4J
28 public interface Logger {
32 boolean isMetricsEnabled();
34 void metrics(String msg);
36 void metrics(String msg, Object arg);
38 void metrics(String msg, Object arg1, Object arg2);
40 void metrics(String msg, Object... arguments);
42 void metrics(String msg, Throwable t);
44 boolean isAuditEnabled();
46 void audit(String msg);
48 void audit(String msg, Object arg);
50 void audit(String msg, Object arg1, Object arg2);
52 void audit(String msg, Object... arguments);
54 void audit(String msg, Throwable t);
56 boolean isDebugEnabled();
58 void debug(String msg);
60 void debug(String msg, Object arg);
62 void debug(String msg, Object arg1, Object arg2);
64 void debug(String msg, Object... arguments);
66 void debug(String msg, Throwable t);
68 boolean isInfoEnabled();
70 void info(String msg);
72 void info(String msg, Object arg);
74 void info(String msg, Object arg1, Object arg2);
76 void info(String msg, Object... arguments);
78 void info(String msg, Throwable t);
80 boolean isWarnEnabled();
82 void warn(String msg);
84 void warn(String msg, Object arg);
86 void warn(String msg, Object... arguments);
88 void warn(String msg, Object arg1, Object arg2);
90 void warn(String msg, Throwable t);
92 boolean isErrorEnabled();
94 void error(String msg);
96 void error(String msg, Object arg);
98 void error(String msg, Object arg1, Object arg2);
100 void error(String msg, Object... arguments);
102 void error(String msg, Throwable t);