com.atlassian.jira.startup
Class JiraStartupLogger

java.lang.Object
  extended by com.atlassian.jira.startup.JiraStartupLogger

public class JiraStartupLogger
extends Object

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
JiraStartupLogger()
           
 
Method Summary
 void printMessage(Collection 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(javax.servlet.ServletContextEvent sce)
          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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraStartupLogger

public JiraStartupLogger()
Method Detail

printMessage

public void printMessage(String message,
                         org.apache.log4j.Level logLevel)
Prints a single message to the log with "stars" around it

Parameters:
message - the message to print
logLevel - the log level

printMessage

public void printMessage(Collection messages,
                         org.apache.log4j.Level logLevel)
Prints a series of messages to the log with "stars" around them

Parameters:
messages - the messages to print
logLevel - the log level

printStartingMessage

public void printStartingMessage(javax.servlet.ServletContextEvent sce)
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

Parameters:
sce - servlet context event

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!



Copyright © 2002-2009 Atlassian. All Rights Reserved.