ca.uhn.hl7v2.util
Class Status

java.lang.Object
  extended by ca.uhn.hl7v2.util.Status

Deprecated. use ca.uhn.log package

public class Status
extends java.lang.Object

Handles output of status messages. Authors are encouraged to provide status information using the methods:

writeStatus(String message);
writeVerboseStatus(String message);

... instead of using System.out.println(...). This allows the user to control the output of status messages in one place.

By default, messages are written to std out, and only "standard" messages are written (i.e. from calls to writeStatus(), not writeVerboseStatus()). This can be changed at startup by setting the following system properties:

ca.uhn.hl7v2.util.status.out = ["STANDARD_OUT" | "FILE"]
ca.uhn.hl7v2.util.status.level = ["NONE" | "STANDARD" | "VERBOSE"]

If a programmer wishes to log status messages more reliably and without user control, (s)he should use ca.uhn.hl7v2.Log instead.

Author:
Bryan Tripp

Field Summary
static int FILE
          Deprecated. Used as an argument to setOutput(), causes status information to be printed to the file "status.log" in the working directory.
static int NONE
          Deprecated. Used as an argument to setVerbosity(), causes no status information to be output.
static int STANDARD
          Deprecated. Used as an argument to setVerbosity(), causes standard status information to be output.
static int STANDARD_OUT
          Deprecated. Used as an argument to setOutput(), causes status information to be printed to standard out.
static int VERBOSE
          Deprecated. Used as an argument to setVerbosity(), causes detailed status information to be output.
 
Method Summary
 void setOutput(int destination)
          Deprecated. Sets the location where status messages are output.
 void setVerbosity(int level)
          Deprecated. Sets the level of detail of status messages.
static void writeStatus(java.lang.String message)
          Deprecated. Outputs a standard status message as per configuration.
static void writeVerboseStatus(java.lang.String message)
          Deprecated. Outputs a detail status message as per configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STANDARD_OUT

public static final int STANDARD_OUT
Deprecated. 
Used as an argument to setOutput(), causes status information to be printed to standard out.

See Also:
Constant Field Values

FILE

public static final int FILE
Deprecated. 
Used as an argument to setOutput(), causes status information to be printed to the file "status.log" in the working directory.

See Also:
Constant Field Values

NONE

public static final int NONE
Deprecated. 
Used as an argument to setVerbosity(), causes no status information to be output.

See Also:
Constant Field Values

STANDARD

public static final int STANDARD
Deprecated. 
Used as an argument to setVerbosity(), causes standard status information to be output.

See Also:
Constant Field Values

VERBOSE

public static final int VERBOSE
Deprecated. 
Used as an argument to setVerbosity(), causes detailed status information to be output.

See Also:
Constant Field Values
Method Detail

setOutput

public void setOutput(int destination)
Deprecated. 
Sets the location where status messages are output. Valid values include Status.STANDARD_OUT (std out) and Status.FILE (messages output to /status.log)


setVerbosity

public void setVerbosity(int level)
Deprecated. 
Sets the level of detail of status messages. Valid values include Status.NONE, Status.STANDARD, and Status.VERBOSE (detailed).


writeStatus

public static void writeStatus(java.lang.String message)
Deprecated. 
Outputs a standard status message as per configuration.


writeVerboseStatus

public static void writeVerboseStatus(java.lang.String message)
Deprecated. 
Outputs a detail status message as per configuration.



Copyright © 2001-2011 University Health Network. All Rights Reserved.