package com.proofpoint.log;

import com.proofpoint.configuration.Config;

public class LoggingConfiguration
{
    private boolean consoleEnabled = true;
    private String logPath;
    private long maxSegmentSizeInBytes;
    private int maxHistory;
    private String levelsFile;

    @Config("log.enable-console")
    public boolean isConsoleEnabled()
    {
        return consoleEnabled;
    }

    public LoggingConfiguration setConsoleEnabled(boolean consoleEnabled)
    {
        this.consoleEnabled = consoleEnabled;
        return this;
    }

    @Config("log.output-file")
    public String getLogPath()
    {
        return logPath;
    }

    public LoggingConfiguration setLogPath(String logPath)
    {
        this.logPath = logPath;
        return this;
    }

    @Config("log.max-size-in-bytes")
    public long getMaxSegmentSizeInBytes()
    {
        return maxSegmentSizeInBytes;
    }

    public LoggingConfiguration setMaxSegmentSizeInBytes(long maxSegmentSizeInBytes)
    {
        this.maxSegmentSizeInBytes = maxSegmentSizeInBytes;
        return this;
    }

    @Config("log.max-history")
    public int getMaxHistory()
    {
        return maxHistory;
    }

    public LoggingConfiguration setMaxHistory(int maxHistory)
    {
        this.maxHistory = maxHistory;
        return this;
    }

    @Config("log.levels-file")
    public String getLevelsFile()
    {
        return levelsFile;
    }

    public LoggingConfiguration setLevelsFile(String levelsFile)
    {
        this.levelsFile = levelsFile;
        return this;
    }
}


@@ -278,42 +278,8 @@
 e;%0A%0A
-    @Config(%22log.enable-console%22)%0A
     
@@ -312,16 +312,16 @@
 abled()%0A
+
     %7B%0A  
@@ -348,32 +348,66 @@
 Enabled;%0A    %7D%0A%0A
+    @Config(%22log.enable-console%22)%0A
     public Loggi
@@ -548,39 +548,8 @@
  %7D%0A%0A
-    @Config(%22log.output-file%22)%0A
     
@@ -604,32 +604,63 @@
 logPath;%0A    %7D%0A%0A
+    @Config(%22log.output-file%22)%0A
     public Loggi
@@ -772,45 +772,8 @@
  %7D%0A%0A
-    @Config(%22log.max-size-in-bytes%22)%0A
     
@@ -854,32 +854,69 @@
 InBytes;%0A    %7D%0A%0A
+    @Config(%22log.max-size-in-bytes%22)%0A
     public Loggi
@@ -1082,39 +1082,8 @@
  %7D%0A%0A
-    @Config(%22log.max-history%22)%0A
     
@@ -1141,32 +1141,63 @@
 History;%0A    %7D%0A%0A
+    @Config(%22log.max-history%22)%0A
     public Loggi
@@ -1318,39 +1318,8 @@
  %7D%0A%0A
-    @Config(%22log.levels-file%22)%0A
     
@@ -1380,32 +1380,63 @@
 elsFile;%0A    %7D%0A%0A
+    @Config(%22log.levels-file%22)%0A
     public Loggi

Fix incorrect annotation usage.