##// END OF EJS Templates
Initialize logger earlier (__init__ instead of post-config-initialization)
vivainio -
Show More
@@ -6,7 +6,7 b' Requires Python 2.3 or newer.'
6
6
7 This file contains all the classes and helper functions specific to IPython.
7 This file contains all the classes and helper functions specific to IPython.
8
8
9 $Id: iplib.py 1027 2006-01-16 21:07:24Z vivainio $
9 $Id: iplib.py 1031 2006-01-18 20:20:39Z vivainio $
10 """
10 """
11
11
12 #*****************************************************************************
12 #*****************************************************************************
@@ -191,7 +191,10 b' class InteractiveShell(object,Magic):'
191 user_ns = None,user_global_ns=None,banner2='',
191 user_ns = None,user_global_ns=None,banner2='',
192 custom_exceptions=((),None),embedded=False):
192 custom_exceptions=((),None),embedded=False):
193
193
194 # first thing: introduce ourselves to IPython.ipapi which is uncallable
194 # log system
195 self.logger = Logger(self,logfname='ipython_log.py',logmode='rotate')
196
197 # introduce ourselves to IPython.ipapi which is uncallable
195 # before it knows an InteractiveShell object.
198 # before it knows an InteractiveShell object.
196 IPython.ipapi._init_with_shell(self)
199 IPython.ipapi._init_with_shell(self)
197
200
@@ -604,8 +607,6 b' class InteractiveShell(object,Magic):'
604 if rc.readline:
607 if rc.readline:
605 self.init_readline()
608 self.init_readline()
606
609
607 # log system
608 self.logger = Logger(self,logfname='ipython_log.py',logmode='rotate')
609 # local shortcut, this is used a LOT
610 # local shortcut, this is used a LOT
610 self.log = self.logger.log
611 self.log = self.logger.log
611
612
General Comments 0
You need to be logged in to leave comments. Login now