Standalone TCA with EELF Logger
[dcaegen2/analytics/tca-gen2.git] / eelf-logger / eelf-logger-api / src / main / java / org / onap / dcae / utils / eelf / logger / api / noop / NoOpAuditLog.java
1 /*
2  * ================================================================================
3  * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
4  * ================================================================================
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  * ============LICENSE_END=========================================================
17  *
18  */
19
20 package org.onap.dcae.utils.eelf.logger.api.noop;
21
22
23 import org.onap.dcae.utils.eelf.logger.api.info.LogLevelCategory;
24 import org.onap.dcae.utils.eelf.logger.api.log.AuditLog;
25 import org.onap.dcae.utils.eelf.logger.api.spec.AuditLogSpec;
26 import org.onap.dcae.utils.eelf.logger.api.spec.OptionalLogSpec;
27
28 /**
29  * A no operation implementation of AuditLog
30  *
31  * @author Rajiv Singla
32  */
33 public class NoOpAuditLog implements AuditLog {
34
35     @Override
36     public void log(final LogLevelCategory logLevelCategory, final String message, final AuditLogSpec auditLogSpec,
37                     final OptionalLogSpec optionalLogSpec, final String... args) {
38         // no operation
39     }
40
41     @Override
42     public void log(final LogLevelCategory logLevelCategory, final String message, final AuditLogSpec auditLogSpec,
43                     final String... args) {
44         // no operation
45     }
46
47     @Override
48     public void info(final String message, final AuditLogSpec auditLogSpec, final OptionalLogSpec optionalLogSpec,
49                      final String... args) {
50         // no operation
51     }
52
53     @Override
54     public void info(final String message, final AuditLogSpec auditLogSpec, final String... args) {
55         // no operation
56     }
57
58     @Override
59     public void warn(final String message, final AuditLogSpec auditLogSpec, final OptionalLogSpec optionalLogSpec,
60                      final String... args) {
61         // no operation
62     }
63
64     @Override
65     public void warn(final String message, final AuditLogSpec auditLogSpec, final String... args) {
66         // no operation
67     }
68
69     @Override
70     public void error(final String message, final AuditLogSpec auditLogSpec, final OptionalLogSpec optionalLogSpec,
71                       final String... args) {
72         // no operation
73     }
74
75     @Override
76     public void error(final String message, final AuditLogSpec auditLogSpec, final String... args) {
77         // no operation
78     }
79
80     @Override
81     public void fatal(final String message, final AuditLogSpec auditLogSpec, final OptionalLogSpec optionalLogSpec,
82                       final String... args) {
83         // no operation
84     }
85
86     @Override
87     public void fatal(final String message, final AuditLogSpec auditLogSpec, final String... args) {
88         // no operation
89     }
90 }