Skip to content

Commit

Permalink
Allow subclass to override prefix and suffix.
Browse files Browse the repository at this point in the history
  • Loading branch information
alcarraz authored Nov 4, 2022
1 parent c778a24 commit dabcec7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions jpos/src/main/java/org/jpos/util/DailyLogListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit dabcec7

Please sign in to comment.