public class JiraStartupLogger extends Object
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"
Constructor and Description |
---|
JiraStartupLogger() |
Modifier and Type | Method and Description |
---|---|
static org.apache.log4j.Logger |
log()
Returns the underlying Logger to be used directly.
|
void |
printMessage(Collection<String> messages,
org.apache.log4j.Level logLevel)
Prints a series of messages to the log with "stars" around them
|
void |
printMessage(String message,
org.apache.log4j.Level logLevel)
Prints a single message to the log with "stars" around it
|
void |
printStartedMessage()
Once JIRA has SUCCESSFULLY started, this is shown.
|
void |
printStartingMessage()
This prints a message that JIRA is "starting".
|
void |
printStartingMessageDatabaseOK()
Once the JIRA database checks out as OK, we can proceed to show more JIRA information
|
public static org.apache.log4j.Logger log()
public void printMessage(String message, org.apache.log4j.Level logLevel)
message
- the message to printlogLevel
- the log levelpublic void printMessage(Collection<String> messages, org.apache.log4j.Level logLevel)
messages
- the messages to printlogLevel
- the log levelpublic void printStartingMessage()
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
public void printStartingMessageDatabaseOK()
public void printStartedMessage()
Copyright © 2002-2015 Atlassian. All Rights Reserved.