Class AbstractLogSubject
- java.lang.Object
-
- org.apache.qpid.server.logging.subjects.AbstractLogSubject
-
- All Implemented Interfaces:
LogSubject
- Direct Known Subclasses:
BindingLogSubject
,ChannelLogSubject
,ConnectionLogSubject
,ExchangeLogSubject
,MessageStoreLogSubject
,PortLogSubject
,QueueLogSubject
public abstract class AbstractLogSubject extends java.lang.Object implements LogSubject
The LogSubjects all have a similar requirement to format their output and provide the String value. This Abstract LogSubject provides this basic functionality, allowing the actual LogSubjects to provide their formatting and data.
-
-
Constructor Summary
Constructors Constructor Description AbstractLogSubject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLogString()
The logString that will be returned via toLogStringvoid
setLogString(java.lang.String logString)
protected void
setLogStringWithFormat(java.lang.String format, java.lang.Object... args)
Set the toString logging of this LogSubject.java.lang.String
toLogString()
toLogString is how the Logging infrastructure will get the text for this LogSubjectjava.lang.String
toString()
-
-
-
Method Detail
-
setLogStringWithFormat
protected void setLogStringWithFormat(java.lang.String format, java.lang.Object... args)
Set the toString logging of this LogSubject. Based on a format provided by format and the var args.- Parameters:
format
- The Message to formatargs
- The values to put in to the message.
-
toLogString
public java.lang.String toLogString()
toLogString is how the Logging infrastructure will get the text for this LogSubject- Specified by:
toLogString
in interfaceLogSubject
- Returns:
- String representing this LogSubject
-
getLogString
public java.lang.String getLogString()
The logString that will be returned via toLogString
-
setLogString
public void setLogString(java.lang.String logString)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-