com.protomatter.syslog
Interface LogPolicy
- All Known Implementing Classes:
- SimpleLogPolicy
- public interface LogPolicy
The interface for the pluggable log policy system.
- See Also:
SimpleLogPolicy
Method Summary |
java.lang.String |
getName()
Get the name of this policy. |
void |
setName(java.lang.String name)
Set the name of this policy. |
boolean |
shouldLog(SyslogMessage message)
Determine if a log message should be logged given the information. |
shouldLog
public boolean shouldLog(SyslogMessage message)
- Determine if a log message should be logged given the information.
This method should execute as fast as possible.
getName
public java.lang.String getName()
- Get the name of this policy.
setName
public void setName(java.lang.String name)
- Set the name of this policy.