##// END OF EJS Templates
doc fixes to logging
fperez -
Show More
@@ -2,7 +2,7 b''
2 """
2 """
3 Logger class for IPython's logging facilities.
3 Logger class for IPython's logging facilities.
4
4
5 $Id: Logger.py 966 2005-12-29 08:34:07Z fperez $
5 $Id: Logger.py 974 2005-12-29 19:48:33Z fperez $
6 """
6 """
7
7
8 #*****************************************************************************
8 #*****************************************************************************
@@ -1,7 +1,7 b''
1 # -*- coding: utf-8 -*-
1 # -*- coding: utf-8 -*-
2 """Magic functions for InteractiveShell.
2 """Magic functions for InteractiveShell.
3
3
4 $Id: Magic.py 973 2005-12-29 18:51:56Z fperez $"""
4 $Id: Magic.py 974 2005-12-29 19:48:33Z fperez $"""
5
5
6 #*****************************************************************************
6 #*****************************************************************************
7 # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> and
7 # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> and
@@ -931,9 +931,14 b' Currently the magic system has the following functions:\\n"""'
931 -o: log also IPython's output. In this mode, all commands which
931 -o: log also IPython's output. In this mode, all commands which
932 generate an Out[NN] prompt are recorded to the logfile, right after
932 generate an Out[NN] prompt are recorded to the logfile, right after
933 their corresponding input line. The output lines are always
933 their corresponding input line. The output lines are always
934 prepended with a #[Out]# marker, so that the log remains valid
934 prepended with a '#[Out]# ' marker, so that the log remains valid
935 Python code.
935 Python code.
936
936
937 Since this marker is always the same, filtering only the output from
938 a log is very easy, using for example a simple awk call:
939
940 awk -F'#\\[Out\\]# ' '{if($2) {print $2}}' ipython_log.py
941
937 -t: put timestamps before each input line logged (these are put in
942 -t: put timestamps before each input line logged (these are put in
938 comments)."""
943 comments)."""
939
944
General Comments 0
You need to be logged in to leave comments. Login now