| |
|
| java.lang.Object log4j.LogEntry log4j.LogReferenceExtension
LogReferenceExtension | final public class LogReferenceExtension extends LogEntry (Code) | | A LogReferenceExtension for saving a reference to another object. Use in
that way e.g.: LOG.warn(object) .
To write your own extension, the following requirements has to be fulfilled:
1. The customized class must extend the LogEntry class.
2. A table in the database must be created.
3. The castor mapping file must be customized for the new class. As base the existing
one can be used.
author: Holger West |
Method Summary | |
public String | getType() Get the type this object references to. | public String | getValue() Get the value this object references to. | public void | setType(String type) Set the type this object references to. | public void | setValue(String value) Set the value this object references to. |
LogReferenceExtension | public LogReferenceExtension()(Code) | | Default constructor.
|
LogReferenceExtension | public LogReferenceExtension(String message, String type, String value)(Code) | | Construct a new LogReferenceExtension with the given message, type
and value.
Parameters: message - The message to set for this object. Parameters: type - The type this oject references to. Parameters: value - The value this object references to. |
getType | public String getType()(Code) | | Get the type this object references to.
The type this object references to. |
getValue | public String getValue()(Code) | | Get the value this object references to.
The value this object references to. |
setType | public void setType(String type)(Code) | | Set the type this object references to.
Parameters: type - The type this object references to. |
setValue | public void setValue(String value)(Code) | | Set the value this object references to.
Parameters: value - The value this object references to. |
|
|
|