lsst.log  21.0.0-4-gf1b3ebf+c983d81982
Public Member Functions | List of all members
lsst.log.utils.LogRedirect Class Reference

Public Member Functions

def __init__ (self, fd=1, dest=sys.stderr, encoding="utf-8", errors="strict")
 
def finish (self)
 

Detailed Description

Redirect a logging file descriptor to a Python stream.

Parameters
----------
fd : `int`
    File descriptor number, usually 1 for standard out, the default log
    output location.
dest : `io.TextIOBase`
    Destination text stream, often `sys.stderr` for ipython or Jupyter
    notebooks.
encoding : `str`
    Text encoding of the data written to fd.
errors : `str`
    Encoding error handling.

See Also
--------
https://stackoverflow.com/questions/41216215

Member Function Documentation

◆ finish()

def lsst.log.utils.LogRedirect.finish (   self)
Stop redirecting output.

The documentation for this class was generated from the following file: