java.lang.Object | |
↳ | com.atlassian.jira.startup.FormattedLogMsg |
This class will allow a series of messages to be formated/indented into the one log4j ouput.
The idea is to build up a message and then call printMessage(), after which the contents of the message will be cleared and the formatter can be used again to output more messages.Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Use this constructor if you dont intended to write to a Logger
| |||||||||||
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Prints the contents of the current formatted messages to the Logger, using the specified
LogLevel.
| |||||||||||
Prints the contents of the current formatted messages to the Logger, using the specified
LogLevel.
| |||||||||||
This will return the FormattedLogMsg as a String.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Use this constructor if you dont intended to write to a Logger
Prints the contents of the current formatted messages to the Logger, using the specified LogLevel. * stars will be placed around the text in the log if useStars is true.
The messages data will be cleared after this call, ready for new output.logLevel | the log4j log level to output as |
---|---|
useStars | if true * characters will be placed around the message output |
Prints the contents of the current formatted messages to the Logger, using the specified LogLevel. * stars will be placed around the text in the log.
The messages data will be cleared after this call, ready for new message output.logLevel | the log4j log level to output as |
---|
This will return the FormattedLogMsg as a String. Calling this method does not reset the state of the log message in the way that printMessage() does