|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jsieve.commands.AbstractCommand org.apache.jsieve.commands.extensions.Log
public class Log
Class Log is an extension that implements a Command to write messages to the Sieve Log. The BNF syntax is...
log [(:fatal / :error / :warn / :info / :debug / :trace)] string
The default log level is :info.
Field Summary |
---|
Fields inherited from interface org.apache.jsieve.commands.extensions.LogLevelTags |
---|
DEBUG_TAG, ERROR_TAG, FATAL_TAG, INFO_TAG, TRACE_TAG, WARN_TAG |
Constructor Summary | |
---|---|
Log()
Constructor for Log. |
Method Summary | |
---|---|
protected java.lang.Object |
executeBasic(MailAdapter mail,
Arguments arguments,
Block block,
SieveContext context)
Abstract method executeBasic invokes a Sieve Command. |
protected void |
log(java.lang.String logLevel,
java.lang.String message,
SieveContext context)
Method log. |
protected void |
logDebug(java.lang.String message,
SieveContext context)
Method logDebug. |
protected void |
logError(java.lang.String message,
SieveContext context)
Method logError. |
protected void |
logFatal(java.lang.String message,
SieveContext sieveContext)
Method logFatal. |
protected void |
logInfo(java.lang.String message,
SieveContext context)
Method logInfo. |
protected void |
logTrace(java.lang.String message,
SieveContext context)
Method logTrace. |
protected void |
logWarn(java.lang.String message,
SieveContext context)
Method logWarn. |
protected void |
validateArguments(Arguments arguments,
SieveContext context)
Framework method validateArguments is invoked before a Sieve Command is executed to validate its arguments. |
Methods inherited from class org.apache.jsieve.commands.AbstractCommand |
---|
execute, updateState, validateBlock, validateState |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Log()
Method Detail |
---|
protected java.lang.Object executeBasic(MailAdapter mail, Arguments arguments, Block block, SieveContext context) throws SieveException
AbstractCommand
executeBasic
in class AbstractCommand
context
- SieveContext
giving contextual information, not
null
SieveException
AbstractCommand.executeBasic(MailAdapter,
Arguments, Block, SieveContext)
protected void log(java.lang.String logLevel, java.lang.String message, SieveContext context) throws SyntaxException
logLevel
- message
-
SyntaxException
protected void logFatal(java.lang.String message, SieveContext sieveContext)
message
- sieveContext
- TODOprotected void logWarn(java.lang.String message, SieveContext context)
message
- context
- TODOprotected void logInfo(java.lang.String message, SieveContext context)
message
- context
- TODOprotected void logDebug(java.lang.String message, SieveContext context)
message
- context
- TODOprotected void logTrace(java.lang.String message, SieveContext context)
message
- context
- TODOprotected void logError(java.lang.String message, SieveContext context)
message
- context
- TODOprotected void validateArguments(Arguments arguments, SieveContext context) throws SieveException
AbstractCommand
validateArguments
in class AbstractCommand
context
- SieveContext
giving contextual information, not
null
SieveException
AbstractCommand.validateArguments(Arguments,
SieveContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |