e768ea59c0afe0eb8f1ac9a72a31759ed43d5de1
[moon.git] /
1 /*
2  * Copyright (c) 2015 Brocade Communications Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.aaa.shiro.accounting;
9
10 import org.slf4j.Logger;
11 import org.slf4j.LoggerFactory;
12
13 /**
14  * Accounter is a common place to output AAA messages. Use this class through
15  * invoking <code>Logger.output("message")</code>.
16  *
17  * @author Ryan Goulding (ryandgoulding@gmail.com)
18  */
19 public class Accounter {
20
21     private static final Logger LOG = LoggerFactory.getLogger(Accounter.class);
22
23     /*
24      * Essentially makes Accounter a singleton, avoiding the verbosity of
25      * <code>Accounter.getInstance().output("message")</code>.
26      */
27     private Accounter() {
28     }
29
30     /**
31      * Account for a particular <code>message</code>
32      *
33      * @param message A message for the aggregated AAA log.
34      */
35     public static void output(final String message) {
36         LOG.debug(message);
37     }
38 }