diff --git a/jpos/src/main/java/org/jpos/util/DailyLogListener.java b/jpos/src/main/java/org/jpos/util/DailyLogListener.java index d8f2d3acfe..818b0b7c1b 100644 --- a/jpos/src/main/java/org/jpos/util/DailyLogListener.java +++ b/jpos/src/main/java/org/jpos/util/DailyLogListener.java @@ -71,10 +71,9 @@ public void setConfiguration(Configuration cfg) throws ConfigurationException { maxSize = cfg.getLong("maxsize",DEF_MAXSIZE); sleepTime = cfg.getLong("sleeptime", DEF_WIN) * 1000; - String suffix = cfg.get("suffix", DEF_SUFFIX), prefix = cfg.get("prefix"); - setSuffix(suffix); - setPrefix(prefix); - logName = prefix + suffix; + setSuffix(cfg.get("suffix", DEF_SUFFIX)); + setPrefix(cfg.get("prefix")); + logName = getPrefix() + getSuffix(); maxAge = cfg.getLong("maxage", DEF_MAXAGE); if (maxAge > 0) {