本文整理汇总了Python中lds.LDSUtilities.LDSUtilities.setupLogging方法的典型用法代码示例。如果您正苦于以下问题:Python LDSUtilities.setupLogging方法的具体用法?Python LDSUtilities.setupLogging怎么用?Python LDSUtilities.setupLogging使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类lds.LDSUtilities.LDSUtilities
的用法示例。
在下文中一共展示了LDSUtilities.setupLogging方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: LDSConfigWizard
# 需要导入模块: from lds.LDSUtilities import LDSUtilities [as 别名]
# 或者: from lds.LDSUtilities.LDSUtilities import setupLogging [as 别名]
import os
from lds.DataStore import DSReaderException, DatasourceConnectException, DatasourceOpenException, DatasourcePrivilegeException
from lds.WFSDataStore import WFSDataStore
from lds.LDSDataStore import LDSDataStore
from lds.ReadConfig import GUIPrefsReader, MainFileReader
from lds.LDSUtilities import LDSUtilities as LU
from lds.VersionUtilities import AppVersion
from lds.PostgreSQLDataStore import PostgreSQLDataStore
from lds.MSSQLSpatialDataStore import MSSQLSpatialDataStore
from lds.FileGDBDataStore import FileGDBDataStore
from lds.SpatiaLiteDataStore import SpatiaLiteDataStore
ldslog = LU.setupLogging()
__version__ = AppVersion.getVersion()
#Notes:
#MS and PG settings entered in these dialogs are saved to config only
#When a new FGDB directory is set in the file dialog using the NewFolder button a new directory is created and a reference added to the user config
#When a new SLITE file is created by entering its name in the SL file dialog, it isnt created but a reference to it is put in the user config file
class LDSConfigWizard(QWizard):
def __init__(self, uchint=None, sechint=None, parent=None):
super(LDSConfigWizard, self).__init__(parent)
self.parent = parent
self.uchint = uchint
self.sechint = sechint
示例2:
# 需要导入模块: from lds.LDSUtilities import LDSUtilities [as 别名]
# 或者: from lds.LDSUtilities.LDSUtilities import setupLogging [as 别名]
import sys
import getopt
from datetime import datetime
from urllib2 import HTTPError
from lds.TransferProcessor import TransferProcessor
from lds.TransferProcessor import InputMisconfigurationException
from lds.VersionUtilities import AppVersion, VersionChecker, UnsupportedVersionException
from lds.DataStore import DSReaderException
from lds.LDSUtilities import LDSUtilities
from lds.ConfigConnector import DatasourceRegister
ldslog = LDSUtilities.setupLogging()
#ldslog = logging.getLogger('LDS')
#ldslog.setLevel(logging.DEBUG)
#
#path = os.path.normpath(os.path.join(os.path.dirname(__file__), "../../log/"))
#if not os.path.exists(path):
# os.mkdir(path)
#df = os.path.join(path,"debug.log")
#
#fh = logging.FileHandler(df,'a')
#fh.setLevel(logging.DEBUG)
#
#formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(module)s %(lineno)d - %(message)s')
#fh.setFormatter(formatter)
#ldslog.addHandler(fh)
示例3: Test_1_DataStore
# 需要导入模块: from lds.LDSUtilities import LDSUtilities [as 别名]
# 或者: from lds.LDSUtilities.LDSUtilities import setupLogging [as 别名]
@author: jramsay
'''
import unittest
import os
import sys
import time
import subprocess
sys.path.append('..')
from lds.LDSUtilities import LDSUtilities
from lds.LDSDataStore import LDSDataStore
testlog = LDSUtilities.setupLogging(ff=2)
class Test_1_DataStore(unittest.TestCase):
UCONF = 'TEST'
LGVAL = 'v:x100'
DESTNAME = 'PostgreSQL'
def setUp(self):
testlog.debug('LDSDataStore_Test.setUp')
self.ldsdatastore = LDSDataStore(None,self.UCONF)
def tearDown(self):
testlog.debug('LDSDataStore_Test.tearDown')