MCPcopy Create free account
hub / github.com/ipython/ipython / logon

Method logon

IPython/core/magics/logging.py:181–189  ·  view source on GitHub ↗

Restart logging. This function is for restarting logging which you've temporarily stopped with %logoff. For starting logging for the first time, you must use the %logstart function, which allows you to specify an optional log filename.

(self, parameter_s='')

Source from the content-addressed store, hash-verified

179
180 @line_magic
181 def logon(self, parameter_s=''):
182 """Restart logging.
183
184 This function is for restarting logging which you've temporarily
185 stopped with %logoff. For starting logging for the first time, you
186 must use the %logstart function, which allows you to specify an
187 optional log filename."""
188
189 self.shell.logger.switch_log(1)
190
191 @line_magic
192 def logstate(self, parameter_s=''):

Callers

nothing calls this directly

Calls 1

switch_logMethod · 0.80

Tested by

no test coverage detected