printlog.py¶
Printing and logging utilities.
-
class
fits2hdf.printlog.
LinePrint
(data)¶ Bases:
object
Print things to stdout on one line dynamically
Instead of creating multiple lines, update current line with new data.
-
class
fits2hdf.printlog.
PrintLog
(verbosity=4)¶ Bases:
object
Print / log based on verbosity level
Verbosity level: 0 - 4 0: Print errors and pa only 1: Print H1 2: Print H1 + H2 3: Print H1 + H2 + H3 4: Print all 5: Print all + debugging info
-
debug
(text)¶ Print debug information to screen
-
err
(text)¶ Print out an error message / warning string
-
h1
(headstr)¶ Print a string as a header
-
h2
(headstr)¶ Print a string as a header
-
h3
(headstr)¶ Print a string as a 3rd level header
-
pa
(text)¶ Always print
-
pp
(text)¶ Print a text string
-
warn
(text)¶ Print out a warning message
-