X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=datarouter-prov%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fdmaap%2Fdatarouter%2Freports%2FReportBase.java;h=e5c86c8efc827a5fe27b7f45f7d30b65bca4d3f4;hb=b60213dc26540543f500b3442b061565907c3cf8;hp=15f056d28f080ed20da3899a2593b4a5d970d445;hpb=e4b20cc6f7c31f48ddd0de5bcd054b09a35cd510;p=dmaap%2Fdatarouter.git diff --git a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/reports/ReportBase.java b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/reports/ReportBase.java index 15f056d2..e5c86c8e 100644 --- a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/reports/ReportBase.java +++ b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/reports/ReportBase.java @@ -7,9 +7,9 @@ * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at - * * + * * * * http://www.apache.org/licenses/LICENSE-2.0 - * * + * * * * Unless required by applicable law or agreed to in writing, software * * distributed under the License is distributed on an "AS IS" BASIS, * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -23,7 +23,8 @@ package org.onap.dmaap.datarouter.reports; -import org.apache.log4j.Logger; +import com.att.eelf.configuration.EELFLogger; +import com.att.eelf.configuration.EELFManager; /** * Base class for all the report generating classes. @@ -32,32 +33,32 @@ import org.apache.log4j.Logger; * @version $Id: ReportBase.java,v 1.1 2013/10/28 18:06:53 eby Exp $ */ abstract public class ReportBase implements Runnable { - protected long from, to; - protected String outfile; - protected Logger logger; - - public ReportBase() { - this.from = 0; - this.to = System.currentTimeMillis(); - this.logger = Logger.getLogger("org.onap.dmaap.datarouter.reports"); - } - - public void setFrom(long from) { - this.from = from; - } - - public void setTo(long to) { - this.to = to; - } - - public String getOutfile() { - return outfile; - } - - public void setOutputFile(String s) { - this.outfile = s; - } - - @Override - abstract public void run(); + protected long from, to; + protected String outfile; + protected EELFLogger logger; + + public ReportBase() { + this.from = 0; + this.to = System.currentTimeMillis(); + this.logger = EELFManager.getInstance().getLogger("ReportLog");; + } + + public void setFrom(long from) { + this.from = from; + } + + public void setTo(long to) { + this.to = to; + } + + public String getOutfile() { + return outfile; + } + + public void setOutputFile(String s) { + this.outfile = s; + } + + @Override + abstract public void run(); }