net.sf.sasl.aop.logging
Class LogConfiguration

java.lang.Object
  extended by net.sf.sasl.aop.logging.LogConfiguration

public class LogConfiguration
extends Object

This is the analogous class to LogConfigBean which will be stored permanent in the heap by the GenericLogAspect class.
Should normally only be used by components of this package.

Since:
0.0.2 (sasl-common-aspect-library)
Author:
Philipp Förmer

Constructor Summary
LogConfiguration()
           
 
Method Summary
 Map<org.slf4j.Logger,LogLevel> getLoggerMap()
           
 ScriptNode getLogScript()
           
 boolean isOneLogLinePerLogTextLine()
           
 void setLoggerMap(Map<org.slf4j.Logger,LogLevel> loggerMap)
          Sets a map of (logger, logLevel) pairs.
 void setLogScript(ScriptNode logScript)
          Sets the log script which should get interpreted by a placeholder script interpreter to generate the log output.
 void setOneLogLinePerLogTextLine(boolean oneLogLinePerLogTextLine)
          Sets whether each line of the log text should be logged in a separate log line or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogConfiguration

public LogConfiguration()
Method Detail

isOneLogLinePerLogTextLine

public boolean isOneLogLinePerLogTextLine()
Returns:
null or non null
Since:
0.0.2 (sasl-common-aspect-library)
See Also:
setOneLogLinePerLogTextLine(boolean)

setOneLogLinePerLogTextLine

public void setOneLogLinePerLogTextLine(boolean oneLogLinePerLogTextLine)
Sets whether each line of the log text should be logged in a separate log line or not.

Parameters:
oneLogLinePerLogTextLine - true or false.
Since:
0.0.2 (sasl-common-aspect-library)

getLoggerMap

public Map<org.slf4j.Logger,LogLevel> getLoggerMap()
Returns:
null or non null
Since:
0.0.2 (sasl-common-aspect-library)
See Also:
setLoggerMap(Map)

setLoggerMap

public void setLoggerMap(Map<org.slf4j.Logger,LogLevel> loggerMap)
Sets a map of (logger, logLevel) pairs. The generated log string by the placeholder script interpreter will get logged by each logger with the configured log level for the logger.

Parameters:
loggerMap - null or non null
Since:
0.0.2 (sasl-common-aspect-library)

getLogScript

public ScriptNode getLogScript()
Returns:
null or non null
Since:
0.0.2 (sasl-common-aspect-library)
See Also:
setLogScript(ScriptNode)

setLogScript

public void setLogScript(ScriptNode logScript)
Sets the log script which should get interpreted by a placeholder script interpreter to generate the log output.

Parameters:
logScript - null or non null
Since:
0.0.2 (sasl-common-aspect-library)


Copyright © 2010. All Rights Reserved.