MCPcopy Index your code
hub / github.com/ipython/ipython / init_logstart

Method init_logstart

IPython/core/interactiveshell.py:846–854  ·  view source on GitHub ↗

Initialize logging in case it was requested at the command line.

(self)

Source from the content-addressed store, hash-verified

844 logmode='rotate')
845
846 def init_logstart(self) -> None:
847 """Initialize logging in case it was requested at the command line.
848 """
849 if self.logappend:
850 self.run_line_magic("logstart", f"{self.logappend} append")
851 elif self.logfile:
852 self.run_line_magic("logstart", self.logfile)
853 elif self.logstart:
854 self.run_line_magic("logstart", "")
855
856 def init_builtins(self):
857 # A single, static flag that we set to True. Its presence indicates

Callers 1

__init__Method · 0.95

Calls 1

run_line_magicMethod · 0.95

Tested by

no test coverage detected