|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.uhn.hl7v2.util.Status
public class Status
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.
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 |
---|
public static final int STANDARD_OUT
public static final int FILE
public static final int NONE
public static final int STANDARD
public static final int VERBOSE
Method Detail |
---|
public void setOutput(int destination)
public void setVerbosity(int level)
public static void writeStatus(java.lang.String message)
public static void writeVerboseStatus(java.lang.String message)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |