Warning
This documentation is for an old version of IPython. You can find docs for newer versions here.
Logger class for IPython’s logging facilities.
Bases: object
A Logfile class with different policies for file creation
Fully stop logging and close log file.
In order to start logging again, a new logstart() call needs to be made, possibly (though not necessarily) with a new filename, mode and other options.
Write the sources to a log.
Inputs:
by input prefilters or input handlers of various kinds. This should always be valid Python.
necessarily valid Python.
Write data to the log file, if active
Generate a new log-file with a default header.
Raises RuntimeError if the log has already been started
Print a status message about the logger.
Fully stop logging and close log file.
In order to start logging again, a new logstart() call needs to be made, possibly (though not necessarily) with a new filename, mode and other options.
Switch logging on/off. val should be ONLY a boolean.