gov.nasa.gsfc.drl.rtstps.server
Class Logger

java.lang.Object
  extended by gov.nasa.gsfc.drl.rtstps.server.Logger

 class Logger
extends java.lang.Object

Logger creates either a NSLS log by reading a site.properties file or creates a log based on the value in the certain -D property options. The site.properties file takes precedence over the command-line options even if they are present.


Field Summary
private  Log log
           
 
Constructor Summary
Logger()
          Create a log
 
Method Summary
private  void createLog()
          The new default behavior is to read a properties file.
private  void createLogFromPropertiesFile(java.util.Properties properties)
          Get the NSLS configuration from the properties file...
private  void createTraditionalLog()
          The traditional method, check individually configured -D properties, either log to a file, stdout or an NSLS server
 void print(java.lang.String message)
          print.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private Log log
Constructor Detail

Logger

public Logger()
Create a log

Method Detail

createLog

private void createLog()
The new default behavior is to read a properties file. The properties file is found in the directory above where RT-STPS is installed. If it does not exist, the traditional method is used to create the log...


createLogFromPropertiesFile

private void createLogFromPropertiesFile(java.util.Properties properties)
Get the NSLS configuration from the properties file... hopefully

Parameters:
properties -

createTraditionalLog

private void createTraditionalLog()
The traditional method, check individually configured -D properties, either log to a file, stdout or an NSLS server


print

public void print(java.lang.String message)
print.