|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.bham.gloss.NullLogger uk.ac.bham.gloss.DoubleLogger
public class DoubleLogger
A Loger object presents a "log" of an execution, eg, for debugging. This one writes all output to two Logger objects. Copyright Richard Kaye 2007-8 for GLOSS, http://gloss.bham.ac.uk Usage permitted according to the GPL. No waranty.
Field Summary |
---|
Fields inherited from interface uk.ac.bham.gloss.Logger |
---|
LOG_ACTIONS, LOG_ALL, LOG_ERRORS, LOG_FILES, LOG_INPUT, LOG_MESSAGES, LOG_MODES, LOG_NONE, LOG_NORMAL, LOG_OUTPUT, LOG_PARAMETERS, LOG_PROCESSES |
Constructor Summary | |
---|---|
DoubleLogger(Logger p,
Logger s)
|
Method Summary | |
---|---|
void |
doattribute(java.lang.String name,
boolean value)
add attribute to an opened tag |
void |
doattribute(java.lang.String name,
int value)
add attribute to an opened tag |
void |
doattribute(java.lang.String name,
java.lang.String value)
add attribute to an opened tag |
void |
docloseelement()
closes the element line |
void |
docloseelement(java.lang.String name)
closes the element line, checking correct name |
void |
doclosetag()
close the tag |
void |
docr()
prints cr and indentation |
void |
doelement(java.lang.String name)
opens a log line with a XML tag "name" |
void |
doprint(java.lang.String text)
prints text to output |
void |
doprintln(java.lang.String text)
prints text to output |
int |
mode()
returns the mode of this logger |
Logger |
thisLogger()
returns this logger |
Methods inherited from class uk.ac.bham.gloss.NullLogger |
---|
attribute, attribute, attribute, attribute, attribute, attribute, closeelement, closeelement, closeelement, closeelement, closetag, closetag, cr, cr, element, element, lastmask, print, print, println, println |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DoubleLogger(Logger p, Logger s)
Method Detail |
---|
public int mode()
Logger
mode
in interface Logger
mode
in class NullLogger
public Logger thisLogger()
Logger
thisLogger
in interface Logger
thisLogger
in class NullLogger
public void docr()
docr
in class NullLogger
public void doelement(java.lang.String name)
doelement
in class NullLogger
public void doprint(java.lang.String text)
doprint
in class NullLogger
public void doprintln(java.lang.String text)
doprintln
in class NullLogger
public void docloseelement()
docloseelement
in class NullLogger
public void docloseelement(java.lang.String name)
docloseelement
in class NullLogger
public void doclosetag()
doclosetag
in class NullLogger
public void doattribute(java.lang.String name, java.lang.String value)
doattribute
in class NullLogger
public void doattribute(java.lang.String name, int value)
doattribute
in class NullLogger
public void doattribute(java.lang.String name, boolean value)
doattribute
in class NullLogger
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |