module loghelper.buffered_flog
¶
Short summary¶
module pyquickhelper.loghelper.buffered_flog
Buffer as a logging function.
Classes¶
class |
truncated documentation |
---|---|
Buffered display. Relies on io.StringIO. Use it as follows: |
Methods¶
method |
truncated documentation |
---|---|
constructor |
|
Returns the content. |
|
print function |
Documentation¶
Buffer as a logging function.
- class pyquickhelper.loghelper.buffered_flog.BufferedPrint[source]¶
Bases:
object
Buffered display. Relies on io.StringIO. Use it as follows:
<<<
def do_something(fLOG=None): if fLOG: fLOG("Did something.") return 3 from pyquickhelper.loghelper import BufferedPrint buf = BufferedPrint() do_something(fLOG=buf.fprint) print(buf)
>>>
Did something.
constructor