Class OOutputStreamManager
java.lang.Object
com.orientechnologies.orient.output.OOutputStreamManager
It contains and manages an OutputStream at different and desired levels. The default OutputStream
is 'System.out', but it's possible to instantiate the class with a specific one by passing it to
the class Constructor. Levels: - 0 : no output - 3 : only error level is printed - 2 : from info
to error is printed - 1 : from debug to error is printed
- Author:
- Gabriele Ponzi
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionOOutputStreamManager(int level) OOutputStreamManager(PrintStream outputStream, int level) -
Method Summary
-
Field Details
-
outputStream
-
BLANK_LEVEL
public static final int BLANK_LEVEL- See Also:
-
DEBUG_LEVEL
public static final int DEBUG_LEVEL- See Also:
-
INFO_LEVEL
public static final int INFO_LEVEL- See Also:
-
WARNING_LEVEL
public static final int WARNING_LEVEL- See Also:
-
ERROR_LEVEL
public static final int ERROR_LEVEL- See Also:
-
-
Constructor Details
-
OOutputStreamManager
public OOutputStreamManager(int level) -
OOutputStreamManager
-
-
Method Details
-
getOutputStream
-
getLevel
public int getLevel() -
setLevel
public void setLevel(int level) -
debug
-
debug
-
info
-
info
-
warn
-
warn
-
error
-
error
-