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().


Variable Index

 o DBWRAP
Log Mode.
 o DEBUG
Log Mode.
 o ERR
Log Mode.
 o INFO
Log Mode.
 o SYS
Log Mode.
 o WARN
Log Mode.

Constructor Index

 o LoggerWriter(int)
Create a new LoggerWriter.

Method Index

 o finalize()
 o flush()
Flush the stream.
 o getPrefixInfo(Object)
Get the pre-defined Object's information.
 o print(boolean)
Print a boolean.
 o print(char)
Print a character.
 o print(char[])
Print an array of chracters.
 o print(double)
Print a double.
 o print(float)
Print a float.
 o print(int)
Print an integer.
 o print(long)
Print a long.
 o print(Object)
Print an object.
 o print(Object, Object)
Print predefined information.
 o print(String)
Print a String.
 o println()
Finish the line.
 o println(boolean)
Print a boolean, and then finish the line.
 o println(char)
Print a character, and then finish the line.
 o println(char[])
Print an array of characters, and then finish the line.
 o println(double)
Print a double, and then finish the line.
 o println(float)
Print a float, and then finish the line.
 o println(int)
Print an integer, and then finish the line.
 o println(long)
Print a long, and then finish the line.
 o println(Object)
Print an Object, and then finish the line.
 o println(Object, Object)
Print predefined information.
 o println(String)
Print a String, and then finish the line.
 o write(char[])
Write an array of characters.
 o write(char[], int, int)
Write a portion of an array of characters.
 o write(int)
Write a single character.
 o write(String)
Write a string.
 o write(String, int, int)
Write a portion of a string.

Variables

 o SYS
 public static final int SYS
Log Mode. SYS : Java Development FrameworkÀÇ ¿¡·¯ ·Î±×. °³¹ßÀÚ´Â ÀÌ ºÎºÐ¿¡ ´ëÇÏ¿©¼­´Â °í·ÁÇÏÁö ¾Ê¾Æµµ µÈ´Ù. ±×·¯³ª FrameworkÀ» °³¹ßÇÏ´Â »ç¶÷Àº ÀÌ·¯ÇÑ ¿¡·¯°¡ ¹ß»ýÇÒ ½Ã ¹Ýµå½Ã È®ÀÎÇÏ°í ¹®Á¦°¡ ÀÖÀ¸¸é Àâ¾Æ ÁÖ¾î¾ß ÇÑ´Ù.

 o ERR
 public static final int ERR
Log Mode. ERR : ºñÁî´ÏÁî ÀûÀ¸·Î ÀϾ¸é ¾ÈµÉ ½É°¢ÇÑ »óȲÀÇ ¿¡·¯·Î±×.

 o WARN
 public static final int WARN
Log Mode. WARN :ºñÁî´ÏÁî ÀûÀ¸·Î ÀϾ¸é ¾ÈµÇÁö¸¸ ±×¸® ½É°¢ÇÏÁö ¾ÊÀº »óȲÀÇ ¿¡·¯·Î±×. ±×·¯³ª ¹Ýµå½Ã Â÷ÈÄ¿¡ ÀÌ·¯ÇÑ »óȲ¿¡ ´ëÇÏ¿© È®ÀÎ ´Ü°è¸¦ °ÅÃÄ¾ß ÇÒ ·Î±×.

 o INFO
 public static final int INFO
Log Mode. INFO : ºñÁî´ÏÁî ÀûÀ¸·Î ÃæºÐÈ÷ ÀϾ ¼ö ÀÖÀ¸¸ç, Çʿ信 ÀÇÇØ ³²°Ü¾ß ÇÒ ·Î±×.

 o DEBUG
 public static final int DEBUG
Log Mode. DEBUG : °³¹ß½Ã¿¡ °³¹ßÀÚ°¡ º¸±â À§ÇÑ °ÍÀ¸·Î, ȤÀº ÇâÈÄ ¾î¶² ¹®Á¦°¡ »ý°åÀ» ¶§, ¸ðµç ·Î±× TRACE ¸¦ º¸°íÀÚ ÇÒ ¶§ ³²À» ¼ö ÀÖ´Â »óȲÀÇ ·Î±×.

 o DBWRAP
 public static final int DBWRAP
Log Mode. DBWRAP : DEBUG¿Í À¯»çÇÏÁö¸¸ ´ëºÎºÐÀÇ MIS¼º ¾îÇø®ÄÉÀ̼ÇÀº SQL¹®ÀåÀ» Æ÷ÇÔÇϰí ÀÖÀ¸¸ç DB Wrapper¸¦ ÀÌ¿ëÇØ ±¸ÇöÇϰï ÇÑ´Ù. À̶§ DBWrapper Ŭ·¡½º¿¡¼­ SQL¹®À常 LoggingÀ» ³²±â°í ½ÍÀ» ¶§°¡ ÀÖÀ» °ÍÀÌ´Ù.

Constructors

 o LoggerWriter
 public LoggerWriter(int mode)
Create a new LoggerWriter.

Parameters:
mode - The one of LoggerWriter.ERR, LoggerWriter.ERR, LoggerWriter.WARN, LoggerWriter.INFO, LoggerWriter.DEBUG

Methods

 o finalize
 public void finalize()
Overrides:
finalize in class Object
 o flush
 public void flush()
Flush the stream.

 o 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
 o print
 public void print(char x[])
Print an array of chracters.

 o print
 public void print(char x)
Print a character.

 o print
 public void print(double x)
Print a double.

 o print
 public void print(float x)
Print a float.

 o print
 public void print(int x)
Print an integer.

 o print
 public void print(long x)
Print a long.

 o print
 public void print(Object x)
Print an object.

 o 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.

 o print
 public void print(String x)
Print a String.

 o print
 public void print(boolean x)
Print a boolean.

 o println
 public void println()
Finish the line.

 o println
 public void println(char x[])
Print an array of characters, and then finish the line.

 o println
 public void println(char x)
Print a character, and then finish the line.

 o println
 public void println(double x)
Print a double, and then finish the line.

 o println
 public void println(float x)
Print a float, and then finish the line.

 o println
 public void println(int x)
Print an integer, and then finish the line.

 o println
 public void println(long x)
Print a long, and then finish the line.

 o println
 public void println(Object x)
Print an Object, and then finish the line.

 o 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.

 o println
 public void println(String x)
Print a String, and then finish the line.

 o println
 public void println(boolean x)
Print a boolean, and then finish the line.

 o 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.

 o write
 public void write(char buf[],
                   int off,
                   int len)
Write a portion of an array of characters.

 o write
 public void write(int c)
Write a single character.

 o 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.

 o 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