change log level at runtime

This commit is contained in:
Athou
2013-06-09 16:19:49 +02:00
parent 9da0f5e946
commit d212cf66c1
4 changed files with 40 additions and 0 deletions

View File

@@ -7,6 +7,8 @@ import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import org.apache.log4j.Level;
@Entity
@Table(name = "APPLICATIONSETTINGS")
@SuppressWarnings("serial")
@@ -29,6 +31,7 @@ public class ApplicationSettings extends AbstractModel {
private boolean heavyLoad;
private boolean pubsubhubbub;
private boolean feedbackButton = true;
private String logLevel = Level.INFO.toString();
@Column(length = 255)
private String announcement;
@@ -162,4 +165,12 @@ public class ApplicationSettings extends AbstractModel {
this.databaseUpdateThreads = databaseUpdateThreads;
}
public String getLogLevel() {
return logLevel;
}
public void setLogLevel(String logLevel) {
this.logLevel = logLevel;
}
}