|
||||||||
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.MCBLogger
public class MCBLogger
A Logger object presents a "log" of an execution, eg, for debugging. This one writes all output to a MessageCallBack object. 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 | |
---|---|
MCBLogger(int mode,
MessageCallBack mcb)
Create a logger that logs all messages matching mode |
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 require indentation on next line |
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 an int value indicating type of log |
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 MCBLogger(int mode, MessageCallBack mcb)
Method Detail |
---|
public Logger thisLogger()
thisLogger
in interface Logger
thisLogger
in class NullLogger
public int mode()
mode
in interface Logger
mode
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 |