aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/main
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-04-25 11:15:25 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-04-25 11:15:25 +0530
commit4afdb71f0c58fdbe988af9544288ae5d94acaf7c (patch)
tree502e2d9fdbdd7f24bd15bc3365274f3c7683f6bc /framework/src/main
parent972ce159e6db5d4801a0eee802fba0ada31bbf3e (diff)
Follow java name convention for log in OnapCommand
Issue-ID: CLI-100 Change-Id: I19aae137a905a961215d9003792210fa9860ed1b Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'framework/src/main')
-rw-r--r--framework/src/main/java/org/onap/cli/fw/cmd/OnapCommand.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/framework/src/main/java/org/onap/cli/fw/cmd/OnapCommand.java b/framework/src/main/java/org/onap/cli/fw/cmd/OnapCommand.java
index 5f76731b..b357b184 100644
--- a/framework/src/main/java/org/onap/cli/fw/cmd/OnapCommand.java
+++ b/framework/src/main/java/org/onap/cli/fw/cmd/OnapCommand.java
@@ -45,7 +45,7 @@ import org.slf4j.LoggerFactory;
*/
public abstract class OnapCommand {
- private static Logger LOG = LoggerFactory.getLogger(OnapCommand.class);
+ private static Logger log = LoggerFactory.getLogger(OnapCommand.class);
private String cmdDescription;
@@ -178,11 +178,11 @@ public abstract class OnapCommand {
}
protected void preRun() throws OnapCommandException {
- LOG.debug("CMD: " + this.getName() + "pre run.");
+ log.debug("CMD: " + this.getName() + "pre run.");
}
protected void postRun() throws OnapCommandException {
- LOG.debug("CMD: " + this.getName() + "post run.");
+ log.debug("CMD: " + this.getName() + "post run.");
}
/**
* Oclip command execute with given parameters on service. Before calling this method, its mandatory to set all
@@ -196,11 +196,11 @@ public abstract class OnapCommand {
throw new OnapCommandNotInitialized(this.getClass().getName());
}
- LOG.info("CMD: " + this.getName());
+ log.info("CMD: " + this.getName());
Map<String, OnapCommandParameter> paramMap = this.getParametersMap();
- LOG.info("INPUT: " + paramMap);
+ log.info("INPUT: " + paramMap);
// -h or --help is always higher precedence !, user can set this value to get help message
if ((Boolean)(paramMap.get(OnapCommandConstants.DEFAULT_PARAMETER_HELP).getValue())) {
@@ -248,7 +248,7 @@ public abstract class OnapCommand {
this.run();
- LOG.info("OUTPUT: " + this.cmdResult.getRecords());
+ log.info("OUTPUT: " + this.cmdResult.getRecords());
postRun();
return this.cmdResult;