org.knopflerfish.service.log
public interface LogConfig
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
If CM is available, upload the current configuration to CM.
|
java.io.File |
getDir() |
boolean |
getFile() |
int |
getFileSize() |
int |
getFilter() |
java.util.HashMap<java.lang.String,java.lang.Integer> |
getFilters() |
boolean |
getFlush() |
int |
getMaxGen() |
int |
getMemorySize()
Get the number of log entries that are kept in memory.
|
boolean |
getOut() |
java.lang.String |
getTimestampPattern() |
boolean |
isDefaultConfig()
Returns
false when the configuration is obtained
from CM. |
void |
setFile(boolean f) |
void |
setFileSize(int fS) |
void |
setFilter(int filter)
Set the default filter level.
|
void |
setFilter(java.lang.String bundleLocation,
int filter)
Set the filter level for bundles that matches the pattern.
|
void |
setFlush(boolean f) |
void |
setMaxGen(int maxGen) |
void |
setMemorySize(int size)
Set number of log entries that are kept in memory.
|
void |
setOut(boolean b)
Property controlling if log entries are written to
System.out or not. |
void |
setTimestampPattern(java.lang.String pattern)
Define the format of the time-stamp used when presenting log
entries.
|
void commit()
boolean isDefaultConfig()
false when the configuration is obtained
from CM.void setMemorySize(int size)
size - the new maximum number of log entries in memory.int getMemorySize()
void setFilter(int filter)
filter - the new default filter level.int getFilter()
void setFilter(java.lang.String bundleLocation,
int filter)
bundleLocation - A pattern to be matched against the bundle.filter - the new default filter level.java.util.HashMap<java.lang.String,java.lang.Integer> getFilters()
void setOut(boolean b)
System.out or not.b - if true log entries will be written to
System.out.boolean getOut()
void setFile(boolean f)
boolean getFile()
java.io.File getDir()
void setFileSize(int fS)
int getFileSize()
void setMaxGen(int maxGen)
int getMaxGen()
void setFlush(boolean f)
boolean getFlush()
void setTimestampPattern(java.lang.String pattern)
System.out.pattern - Date time pattern as defined in
java.text.SimpleDateFormat(java.lang.String).
If the given pattern is invalid, the old pattern
is keept.java.lang.String getTimestampPattern()