|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The log handle is what the Norna framework publishes as log service to it's members. The logging service is guaranteed to be available by the framework.
All methods in this interface may be subject to security check using the LogPermission
permission.
The norna log service has a fixed Namespace ID, "/norna/log", which is also a static identifier in this class.
| Field Summary | |
static java.lang.String |
NAMESPACE_ID
The fixed namespace ID, "/norna/log" |
| Method Summary | |
void |
addFilter(Filter filter)
Add a log filter to the handle. |
boolean |
checkAccess(Level level)
Check if the handle would accept a log record based on a level. |
boolean |
checkAccess(Level level,
Type type)
Check if the handle would accept a log record with a level and type. |
void |
flush()
Flush this log handle to make sure no log records are cached. |
void |
log(Record record)
Log a record. |
void |
removeFilter(Filter filter)
Remove a log filter to the handle. |
| Methods inherited from interface net.larsan.norna.base.ServiceHandle |
getStatus |
| Field Detail |
public static final java.lang.String NAMESPACE_ID
| Method Detail |
public boolean checkAccess(Level level,
Type type)
level - Log level to checktype - Log record type
public boolean checkAccess(Level level)
level - Log level to check
public void log(Record record)
record - Log record, must not be nullpublic void addFilter(Filter filter)
filter - Log filter to add to chain, must not be nullpublic void removeFilter(Filter filter)
filter - Log filter to remove from chain, must not be nullpublic void flush()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||