How to automatically enable logging * with timestamps * in iPython 0.12?

I am using iPython 0.12 and setting up my configuration file. Enabling logging from the start was not a problem, just setting

c.TerminalInteractiveShell.logstart = True in ~/.ipython/profile_default/ipython_config.py .

However, I would also like to have timestamps in my log file, just like %logstart -t .

Is there any way to set this in the configuration file?

+4
source share
1 answer

All commands are now registered in the SQLite database, and IPython has an API for accessing data if it suits your needs.

If you need text magazines, you can change the cookbook example for dated log files here: http://wiki.ipython.org/Cookbook/DatedLog

0
source

Source: https://habr.com/ru/post/1393056/


All Articles