mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
change log level at runtime
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user