All Packages Class Hierarchy This Package Previous Next Index
Class com.lgeds.jdf.LoggerWriter
java.lang.Object
|
+----com.lgeds.jdf.LoggerWriter
- public abstract class LoggerWriter
- extends Object
Print formatted representations of objects to a text-file output stream. This
class implements all of the print methods found in PrintStream. It does not
contain methods for writing raw bytes, for which a program should use
unencoded byte streams.
Unlike the PrintStream class, if automatic flushing is enabled by setting
in the configuration file ( com.lgeds.jdf.logger.autoflush=true ), it will
be done only when one of the println() methods is invoked, rather than
whenever a newline character happens to be output. The println() methods
use the platform's own notion of line separator rather than the newline
character.
Methods in this class never throw I/O exceptions. The client may
inquire as to whether any errors have occurred by invoking checkError().
-
DBWRAP
- Log Mode.
-
DEBUG
- Log Mode.
-
ERR
- Log Mode.
-
INFO
- Log Mode.
-
SYS
- Log Mode.
-
WARN
- Log Mode.
-
LoggerWriter(int)
- Create a new LoggerWriter.
-
finalize()
-
-
flush()
- Flush the stream.
-
getPrefixInfo(Object)
- Get the pre-defined Object's information.
-
print(boolean)
- Print a boolean.
-
print(char)
- Print a character.
-
print(char[])
- Print an array of chracters.
-
print(double)
- Print a double.
-
print(float)
- Print a float.
-
print(int)
- Print an integer.
-
print(long)
- Print a long.
-
print(Object)
- Print an object.
-
print(Object, Object)
-
Print predefined information.
-
print(String)
- Print a String.
-
println()
- Finish the line.
-
println(boolean)
- Print a boolean, and then finish the line.
-
println(char)
- Print a character, and then finish the line.
-
println(char[])
- Print an array of characters, and then finish the line.
-
println(double)
- Print a double, and then finish the line.
-
println(float)
- Print a float, and then finish the line.
-
println(int)
- Print an integer, and then finish the line.
-
println(long)
- Print a long, and then finish the line.
-
println(Object)
- Print an Object, and then finish the line.
-
println(Object, Object)
-
Print predefined information.
-
println(String)
- Print a String, and then finish the line.
-
write(char[])
- Write an array of characters.
-
write(char[], int, int)
- Write a portion of an array of characters.
-
write(int)
- Write a single character.
-
write(String)
- Write a string.
-
write(String, int, int)
- Write a portion of a string.
SYS
public static final int SYS
- Log Mode.
SYS : Java Development FrameworkÀÇ ¿¡·¯ ·Î±×.
°³¹ßÀÚ´Â ÀÌ ºÎºÐ¿¡ ´ëÇÏ¿©¼´Â °í·ÁÇÏÁö ¾Ê¾Æµµ µÈ´Ù.
±×·¯³ª FrameworkÀ» °³¹ßÇÏ´Â »ç¶÷Àº ÀÌ·¯ÇÑ ¿¡·¯°¡ ¹ß»ýÇÒ ½Ã
¹Ýµå½Ã È®ÀÎÇÏ°í ¹®Á¦°¡ ÀÖÀ¸¸é Àâ¾Æ ÁÖ¾î¾ß ÇÑ´Ù.
ERR
public static final int ERR
- Log Mode.
ERR : ºñÁî´ÏÁî ÀûÀ¸·Î ÀϾ¸é ¾ÈµÉ ½É°¢ÇÑ »óȲÀÇ ¿¡·¯·Î±×.
WARN
public static final int WARN
- Log Mode.
WARN :ºñÁî´ÏÁî ÀûÀ¸·Î ÀϾ¸é ¾ÈµÇÁö¸¸ ±×¸® ½É°¢ÇÏÁö ¾ÊÀº »óȲÀÇ ¿¡·¯·Î±×.
±×·¯³ª ¹Ýµå½Ã Â÷ÈÄ¿¡ ÀÌ·¯ÇÑ »óȲ¿¡ ´ëÇÏ¿© È®ÀÎ ´Ü°è¸¦ °ÅÃÄ¾ß ÇÒ ·Î±×.
INFO
public static final int INFO
- Log Mode.
INFO : ºñÁî´ÏÁî ÀûÀ¸·Î ÃæºÐÈ÷ ÀϾ ¼ö ÀÖÀ¸¸ç, Çʿ信 ÀÇÇØ ³²°Ü¾ß ÇÒ ·Î±×.
DEBUG
public static final int DEBUG
- Log Mode.
DEBUG : °³¹ß½Ã¿¡ °³¹ßÀÚ°¡ º¸±â À§ÇÑ °ÍÀ¸·Î, ȤÀº ÇâÈÄ ¾î¶² ¹®Á¦°¡ »ý°åÀ» ¶§,
¸ðµç ·Î±× TRACE ¸¦ º¸°íÀÚ ÇÒ ¶§ ³²À» ¼ö ÀÖ´Â »óȲÀÇ ·Î±×.
DBWRAP
public static final int DBWRAP
- Log Mode.
DBWRAP : DEBUG¿Í À¯»çÇÏÁö¸¸ ´ëºÎºÐÀÇ MIS¼º ¾îÇø®ÄÉÀ̼ÇÀº SQL¹®ÀåÀ» Æ÷ÇÔÇϰí ÀÖÀ¸¸ç
DB Wrapper¸¦ ÀÌ¿ëÇØ ±¸ÇöÇϰï ÇÑ´Ù. À̶§ DBWrapper Ŭ·¡½º¿¡¼ SQL¹®À常 LoggingÀ»
³²±â°í ½ÍÀ» ¶§°¡ ÀÖÀ» °ÍÀÌ´Ù.
LoggerWriter
public LoggerWriter(int mode)
- Create a new LoggerWriter.
- Parameters:
- mode - The one of LoggerWriter.ERR, LoggerWriter.ERR,
LoggerWriter.WARN, LoggerWriter.INFO, LoggerWriter.DEBUG
finalize
public void finalize()
- Overrides:
- finalize in class Object
flush
public void flush()
- Flush the stream.
getPrefixInfo
protected abstract String getPrefixInfo(Object o)
- Get the pre-defined Object's information.
You must be implement this method.
- Parameters:
- o - java.lang.Object
- Returns:
- java.lang.String
print
public void print(char x[])
- Print an array of chracters.
print
public void print(char x)
- Print a character.
print
public void print(double x)
- Print a double.
print
public void print(float x)
- Print a float.
print
public void print(int x)
- Print an integer.
print
public void print(long x)
- Print a long.
print
public void print(Object x)
- Print an object.
print
public void print(Object p,
Object x)
- Print predefined information.
Print the predefined information of Object p,
and then the string of message Object p.
print
public void print(String x)
- Print a String.
print
public void print(boolean x)
- Print a boolean.
println
public void println()
- Finish the line.
println
public void println(char x[])
- Print an array of characters, and then finish the line.
println
public void println(char x)
- Print a character, and then finish the line.
println
public void println(double x)
- Print a double, and then finish the line.
println
public void println(float x)
- Print a float, and then finish the line.
println
public void println(int x)
- Print an integer, and then finish the line.
println
public void println(long x)
- Print a long, and then finish the line.
println
public void println(Object x)
- Print an Object, and then finish the line.
println
public void println(Object p,
Object x)
- Print predefined information.
Print the predefined information of Object p,
and then the string of message Object p.
println
public void println(String x)
- Print a String, and then finish the line.
println
public void println(boolean x)
- Print a boolean, and then finish the line.
write
public void write(char buf[])
- Write an array of characters. This method cannot be inherited from the
Writer class because it must suppress I/O exceptions.
write
public void write(char buf[],
int off,
int len)
- Write a portion of an array of characters.
write
public void write(int c)
- Write a single character.
write
public void write(String s)
- Write a string. This method cannot be inherited from the Writer class
because it must suppress I/O exceptions.
write
public void write(String s,
int off,
int len)
- Write a portion of a string.
All Packages Class Hierarchy This Package Previous Next Index