| Home | Trees | Index | Help |
|
|---|
|
|
Loggers, allowing them to present this information in the
manner that is best suited to each interface.Note:
I considered using the standard logging package to
provide this functionality. However, I found that it would be too
difficult to get that package to provide the behavior I want (esp.
with respect to progress displays; but also with respect to message
blocks).
|
|||
| Logger | An abstract base class that defines the interface for loggers, which are used by epydoc to report information back to the user. | ||
| SimpleLogger | |||
|
|||
|
register_logger(logger)
Register a logger. |
|||
| remove_logger(logger) | |||
|
fatal(*messages)
Display the given fatal message. |
|||
|
error(*messages)
Display the given error message. |
|||
|
warning(*messages)
Display the given warning message. |
|||
|
docstring_warning(*messages)
Display the given docstring warning message. |
|||
|
info(*messages)
Display the given informational message. |
|||
|
debug(*messages)
Display the given debugging message. |
|||
|
start_block(header)
Start a new message block. |
|||
|
end_block()
End a warning block. |
|||
|
start_progress(header=None)
Begin displaying progress for a new task. |
|||
|
end_progress()
Finish off the display of progress for the current task. |
|||
|
progress(percent,
message='')
Update the progress display. |
|||
|
|||
| DOCSTRING_WARNING | |||
| _loggers | The list of registered logging functions. | ||
| Message Severity Levels | |||
|---|---|---|---|
| DEBUG | |||
| INFO | |||
| WARNING | |||
| ERROR | |||
| FATAL | |||
|
|||
|
|
|
|
|
|
|
|
warn, or error that occur between a call to
start_block and a corresponding call to
end_block will be grouped together, and displayed with a
common header. start_block can be called multiple times (to
form nested blocks), but every call to start_block
must be balanced by a call to end_block.
|
|
header is a
description of the task for which progress is being reported. Each call
to start_progress must be followed by a call to
end_progress (with no intervening calls to
start_progress).
|
|
|
|
|||
DEBUG
|
INFO
|
DOCSTRING_WARNING
|
WARNING
|
ERROR
|
FATAL
|
_loggersThe list of registered logging functions.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 3.0alpha2 on Tue Apr 11 17:31:29 2006 | http://epydoc.sf.net |