|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.logging.Formatter
java.util.logging.SimpleFormatter
edu.mscd.cs.javaln.LineNumberFormatter
public class LineNumberFormatter
Add method line numbers to logging.
| Constructor Summary | |
|---|---|
LineNumberFormatter()
|
|
| Method Summary | |
|---|---|
java.lang.String |
format(java.util.logging.LogRecord rec)
|
static int |
getLineNumber()
|
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.util.logging.Formatter |
|---|
formatMessage, getHead, getTail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LineNumberFormatter()
| Method Detail |
|---|
public static int getLineNumber()
public java.lang.String format(java.util.logging.LogRecord rec)
format in class java.util.logging.SimpleFormatterpublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||