gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject cvs commit: jakarta-gump/python/gump __init__.py build.py check.py gen.py model.py
Date Mon, 05 May 2003 07:23:08 GMT
nicolaken    2003/05/05 00:23:07

  Modified:    python/gump __init__.py build.py check.py gen.py model.py
  Log:
  Configure logging only in __main__
  
  Revision  Changes    Path
  1.8       +9 -9      jakarta-gump/python/gump/__init__.py
  
  Index: __init__.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/__init__.py,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- __init__.py	4 May 2003 19:39:50 -0000	1.7
  +++ __init__.py	5 May 2003 07:23:06 -0000	1.8
  @@ -104,15 +104,9 @@
   # tell python what modules make up the gump package
   __all__ = ["conf", "view", "build", "gen"]
   
  -# init logging
  -logging.basicConfig()
  -
   # base gump logger
   log = logging.getLogger(__name__)
   
  -#set verbosity to show all messages of severity >= DEBUG
  -log.setLevel(default.logLevel)
  -
   # ensure dirs exists
   conf.basicConfig()
   
  @@ -396,6 +390,12 @@
   
   if __name__=='__main__':
     from gump.core import *
  +
  +  # init logging
  +  logging.basicConfig()
  +
  +  #set verbosity to show all messages of severity >= default.logLevel
  +  log.setLevel(default.logLevel)
   
     print
     print
  
  
  
  1.5       +6 -13     jakarta-gump/python/gump/build.py
  
  Index: build.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/build.py,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- build.py	30 Apr 2003 17:05:32 -0000	1.4
  +++ build.py	5 May 2003 07:23:06 -0000	1.5
  @@ -25,17 +25,9 @@
   # Initialize
   ###############################################################################
   
  -# use own logging
  -
  -# init logging
  -logging.basicConfig()
  -
   # base gump logger
   log = logging.getLogger(__name__)
   
  -#set verbosity to show all messages of severity >= default.logLevel
  -log.setLevel(default.logLevel)
  -
   ###############################################################################
   # Functions
   ###############################################################################
  @@ -187,11 +179,12 @@
   
   # static void main()
   if __name__=='__main__':
  -  # -----------DISABLED-----------
  -  # use all absolutized pathnames
  -  # ------------------------------
  -  # cd into the base Gump dir; all dirs are relative to it
  -  #os.chdir(dir.base)
  +
  +  # init logging
  +  logging.basicConfig()
  +
  +  #set verbosity to show all messages of severity >= default.logLevel
  +  log.setLevel(default.logLevel)
   
     # load commandline args or use default values
     if len(sys.argv)>1 :
  
  
  
  1.2       +6 -8      jakarta-gump/python/gump/check.py
  
  Index: check.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/check.py,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- check.py	4 May 2003 22:55:08 -0000	1.1
  +++ check.py	5 May 2003 07:23:06 -0000	1.2
  @@ -16,17 +16,9 @@
   # Initialize
   ###############################################################################
   
  -# use own logging
  -
  -# init logging
  -logging.basicConfig()
  -
   # base gump logger
   log = logging.getLogger(__name__)
   
  -#set verbosity to show all messages of severity >= default.logLevel
  -log.setLevel(default.logLevel)
  -
   ###############################################################################
   # Functions
   ###############################################################################
  @@ -76,6 +68,12 @@
   # static void main()
   if __name__=='__main__':
   
  +  # init logging
  +  logging.basicConfig()
  +
  +  #set verbosity to show all messages of severity >= default.logLevel
  +  log.setLevel(default.logLevel)
  +  
     # load commandline args or use default values
     if len(sys.argv)>1 :
       ws=sys.argv[1]
  
  
  
  1.6       +9 -10     jakarta-gump/python/gump/gen.py
  
  Index: gen.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/gen.py,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- gen.py	2 May 2003 12:26:41 -0000	1.5
  +++ gen.py	5 May 2003 07:23:07 -0000	1.6
  @@ -69,9 +69,7 @@
   from gump.conf import *
   
   # init logging
  -logging.basicConfig()
   log = logging.getLogger(__name__)
  -log.setLevel(logging.DEBUG) #set verbosity to show all messages of severity >= DEBUG
   
   #########################################################################
   #                     Dump the object module as XML                     #
  @@ -133,11 +131,12 @@
       return f.read()
   
   if __name__=='__main__':
  -  # -----------DISABLED-----------
  -  # use all absolutized pathnames
  -  # ------------------------------
  -  # cd into the base Gump dir; all dirs are relative to it
  -  #os.chdir(dir.base)
  +
  +  # init logging
  +  logging.basicConfig()
  +
  +  #set verbosity to show all messages of severity >= default.logLevel
  +  log.setLevel(default.logLevel)
   
     # load commandline args or use default values
     if len(sys.argv)>1 :
  
  
  
  1.10      +3 -12     jakarta-gump/python/gump/model.py
  
  Index: model.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/model.py,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- model.py	4 May 2003 21:02:57 -0000	1.9
  +++ model.py	5 May 2003 07:23:07 -0000	1.10
  @@ -68,17 +68,8 @@
   # Initialize
   ###############################################################################
   
  -# use own logging
  -
  -# init logging
  -logging.basicConfig()
  -
   # base gump logger
   log = logging.getLogger(__name__)
  -
  -#set verbosity to show all messages of severity >= default.logLevel
  -log.setLevel(default.logLevel)
  -
   
   ###############################################################################
   # Gump Object Model
  
  
  

Mime
View raw message