Syslog: White Paper FAQ Examples JavaDoc
Protomatter Classes v1.1.6

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.
 

Method Detail

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.

Protomatter Classes v1.1.6
Copyright 1998-2001 Nate Sammons

Protomatter Classes v1.1.6 http://protomatter.sourceforge.net/1.1.6