diff -r 7685cec9fd3c -r f2ddfa555b0f doc/api/python/heliumlogging-pysrc.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/python/heliumlogging-pysrc.html Fri Sep 11 11:54:49 2009 +0100 @@ -0,0 +1,139 @@ + + + + + heliumlogging + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + Module heliumlogging + + + + + + +
[hide private]
[frames] | no frames]
+
+

Source Code for Module heliumlogging

+
+ 1  #============================================================================  
+ 2  #Name        : heliumlogging.py  
+ 3  #Part of     : Helium  
+ 4   
+ 5  #Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
+ 6  #All rights reserved. 
+ 7  #This component and the accompanying materials are made available 
+ 8  #under the terms of the License "Eclipse Public License v1.0" 
+ 9  #which accompanies this distribution, and is available 
+10  #at the URL "http://www.eclipse.org/legal/epl-v10.html". 
+11  # 
+12  #Initial Contributors: 
+13  #Nokia Corporation - initial contribution. 
+14  # 
+15  #Contributors: 
+16  # 
+17  #Description: 
+18  #=============================================================================== 
+19   
+20  import os 
+21  import logging 
+22  import logging.config 
+23  if os.environ.has_key("HELIUM_CACHE_DIR"): 
+24      logconf = os.path.join(os.environ['HELIUM_CACHE_DIR'], "logging." + os.environ['PID'] + ".conf") 
+25  else: 
+26      logconf = os.path.join(os.getcwd(), "logging.conf") 
+27   
+28  assert os.path.exists(logconf) 
+29  logging.config.fileConfig(logconf) 
+30   
+
+
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + +