Package com.atlassian.jira.startup
Class JiraStartupLogger
java.lang.Object
com.atlassian.jira.startup.JiraStartupLogger
This class prints information to the log when Jira is "about to start" and when it "has started"
This is really here for Jira admins and support staff to know when Jira is starting and hence if anything goes wrong during the boot they can tell. Also is gives a strong indication of when Jira was "restarted"
- Since:
- v3.13
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.log4j.Logger
log()
Returns the underlying Logger to be used directly.void
printMessage
(String message, org.apache.log4j.Level logLevel) Prints a single message to the log with "stars" around itvoid
printMessage
(Collection<String> messages, org.apache.log4j.Level logLevel) Prints a series of messages to the log with "stars" around themvoid
Once Jira has SUCCESSFULLY started, this is shown.void
This prints a message that Jira is "starting".void
Once the Jira database checks out as OK, we can proceed to show more Jira information
-
Constructor Details
-
JiraStartupLogger
public JiraStartupLogger()
-
-
Method Details
-
log
public static org.apache.log4j.Logger log()Returns the underlying Logger to be used directly.- Returns:
- the underlying Logger to be used directly.
-
printMessage
Prints a single message to the log with "stars" around it- Parameters:
message
- the message to printlogLevel
- the log level
-
printMessage
Prints a series of messages to the log with "stars" around them- Parameters:
messages
- the messages to printlogLevel
- the log level
-
printStartingMessage
public void printStartingMessage()This prints a message that Jira is "starting". Remember this differs from "started" and is also the first output when a Jira instance is "re-started".NOTE : It must be very careful not to "bring up" the Jira world from an unintended class dependency. At present this code will only get basic Jira build info, App Server Info and Java JVM Info. It is veyr careful not to
-
printStartingMessageDatabaseOK
public void printStartingMessageDatabaseOK()Once the Jira database checks out as OK, we can proceed to show more Jira information -
printStartedMessage
public void printStartedMessage()Once Jira has SUCCESSFULLY started, this is shown. Jira is now UP and the world is our oyster!
-