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

Method logstate

IPython/core/logger.py:154–165  ·  view source on GitHub ↗

Print a status message about the logger.

(self)

Source from the content-addressed store, hash-verified

152 self.log_active_out = self.log_active
153
154 def logstate(self):
155 """Print a status message about the logger."""
156 if self.logfile is None:
157 print('Logging has not been activated.')
158 else:
159 state = self.log_active and 'active' or 'temporarily suspended'
160 print('Filename :', self.logfname)
161 print('Mode :', self.logmode)
162 print('Output logging :', self.log_output)
163 print('Raw input log :', self.log_raw_input)
164 print('Timestamping :', self.timestamp)
165 print('State :', state)
166
167 def log(self, line_mod, line_ori):
168 """Write the sources to a log.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected