示例#1
0
 def __init__(self, application):
     WsgiLog.__init__(self,
                      application,
                      logformat='%(message)s',
                      tostream=True,
                      toprint=True,
                      loglevel=logging.DEBUG)
示例#2
0
文件: logger.py 项目: Wiki616/LABOSS
 def __init__(self,application):
     WsgiLog.__init__(self,application,
                      logformat = constants.log_format,
                      tofile = True,
                      file = constants.log_file,
                      interval = constants.log_interval,
                      backups = constants.log_backups
                      )
示例#3
0
 def __init__(self, application):
     WsgiLog.__init__(self,
                      application,
                      logformat=config.logformat,
                      tofile=True,
                      file=config.file,
                      interval=config.interval,
                      backups=config.backups)
示例#4
0
 def __init__(self, application):
     WsgiLog.__init__(self, application,
                      logformat = log_format,
                      datefmt = date_format,
                      tofile = tofile_flag,
                      file = file_name,
                      interval = split_interval,
                      backups = backup_num)
示例#5
0
 def __init__(self, application):
     WsgiLog.__init__(
         self,
         application,
         logformat='%(message)s',
         tostream=True,
         toprint=True,
         loglevel=logging.DEBUG
     )
示例#6
0
 def __init__(self, application):
     """Initialize the WsgiLog parent class with configuration options."""
     WsgiLog.__init__(self,
                      application,
                      logformat='%(asctime)s - %(levelname)s - %(message)s',
                      tofile=True,
                      toprint=True,
                      file=os.path.join(os.path.dirname(__file__), 'log',
                                        'debug.log'))
示例#7
0
文件: main.py 项目: qcq/WeChat
 def __init__(self, application):
     WsgiLog.__init__(self,
                      application,
                      logformat=LOG_FORMAT,
                      tofile=True,
                      toprint=True,
                      file=WEB_LOG_FILE_NAME,
                      interval='d',
                      backups='3')
示例#8
0
 def __init__(self, application):
     WsgiLog.__init__(
             self,
             application,
             log=config.log_enable,
             tofile=config.log_tofile,
             toprint=config.log_toprint,
             file=config.log_file
             )
示例#9
0
文件: index.py 项目: NetWilliam/xcf
 def __init__(self, application):
     WsgiLog.__init__(
         self,
         application,
         logformat = '[%(asctime)s] %(filename)s:%(lineno)d(%(funcName)s): [%(levelname)s] %(message)s',
         tofile = True,
         file = '/home/pi/source/xcf/log/webpy.log',
         interval = 's',
         backups = 1)
示例#10
0
文件: agent_log.py 项目: yucz/agent-1
 def __init__(self, application):
     WsgiLog.__init__(self,
                      application,
                      logformat=LOG_FORMAT,
                      datefmt=DATE_FORMAT,
                      tofile=True,
                      file=LOG_FILE,
                      interval=INTERVAL,
                      backups=BACKUPS)
示例#11
0
 def __init__(self, application):
     WsgiLog.__init__(self,
                      application,
                      logformat='%(message)s',
                      tofile=True,
                      toprint=True,
                      file=web.config.log_file,
                      interval=web.config.log_interval,
                      backups=web.config.log_backups)
示例#12
0
 def __init__(self, application):
     WsgiLog.__init__(
         self,
         application,
         logformat="[%(asctime)s] %(filename)s:%(lineno)d(%(funcName)s): [%(levelname)s] %(message)s",
         tofile=True,
         toprint=True,
         file="web.log",
     )
示例#13
0
 def __init__(self, application):
     WsgiLog.__init__(self,
                      application,
                      logformat='%(message)s',
                      tofile=True,
                      toprint=True,
                      prnlevel=level,
                      file=logfile,
                      backups=1)
示例#14
0
文件: Log.py 项目: gerza/webhook
 def __init__(self, application):
     WsgiLog.__init__(
         self,
         application,
         logformat = '%(message)s',
         tofile = True,
         toprint = False,
         tostream = False,
         file = ConfigWebhook.LOGFILE,
         )
示例#15
0
文件: log.py 项目: lpmi-13/thor
 def __init__(self, application):
     WsgiLog.__init__(
         self,
         application,
         logformat=' '.join(LOG_FORMAT),
         tofile=True,
         toprint=True,
         tostream=True,
         file=constants.LOG_FILE_WEB,
     )
 def __init__(self, application):
     WsgiLog.__init__(
         self,
         application,
         logformat='[%(asctime)s][%(name)s][%(levelname)s]: %(message)s',
         debug=True,
         tofile=web.config.log_tofile,
         toprint=False,
         file=web.config.log_file,
         loglevel=logging.DEBUG)
示例#17
0
 def __init__(self, application):
     """Initialize the WsgiLog parent class with configuration options."""
     WsgiLog.__init__(
         self,
         application,
         logformat="%(asctime)s - %(levelname)s - %(message)s",
         tofile=True,
         toprint=True,
         file=os.path.join(os.path.dirname(__file__), "log", "debug.log"),
     )
示例#18
0
 def __init__(self, application):
     WsgiLog.__init__(self,
                      application,
                      logformat=config.logformat,
                      datefmt=config.datefmt,
                      tofile=True,
                      file=config.file,
                      interval=config.interval,
                      backups=config.backups)
     sys.stdout = LogStdout(self.logger, logging.INFO)
     sys.stderr = LogStdout(self.logger, logging.ERROR)
示例#19
0
 def __init__(self, application):
     WsgiLog.__init__(
         self,
         application,
         logformat = config.logformat,
         datefmt = config.datefmt,
         tofile = True,
         file = config.file,
         interval = config.interval,
         backups = config.backups
         )
 def __init__(self, application):
     WsgiLog.__init__(
         self,
         application,
         logformat = '%(message)s',
         tofile = True,
         toprint = True,
         prnlevel = level,
         file = logfile,
         backups =1
         )
示例#21
0
文件: log.py 项目: lamter/WBFSystem
 def __init__(self, application):
     WsgiLog.__init__(
         self,
         application,
         logformat='%(message)s',
         tofile=True,
         toprint=False,
         file=settings.log,
         # interval = 0.1,
         # backups = 1,
     )
示例#22
0
文件: server.py 项目: zeitkunst/JJPS
 def __init__(self, application):
     WsgiLog.__init__(
         self,
         application,
         logformat = '%(message)s',
         tofile = True,
         toprint = True,
         file = serverConfig.log_file,
         interval = serverConfig.log_interval,
         backups = serverConfig.log_backups
     )
示例#23
0
    def __init__(self, application):
        WsgiLog.__init__(self,
                         application,
                         logformat='%(message)s',
                         tofile=True,
                         file=config.log_file,
                         interval=config.log_interval,
                         backups=config.log_backups)

        sys.stdout = wsgilog.LogIO(self.logger, logging.INFO)
        sys.stderr = wsgilog.LogIO(self.logger, logging.ERROR)
示例#24
0
文件: log.py 项目: lamter/WBFSystem
 def __init__(self, application):
     WsgiLog.__init__(
         self,
         application,
         logformat = '%(message)s',
         tofile = True,
         toprint = False,
         file = settings.log,
         # interval = 0.1,
         # backups = 1,
         )
示例#25
0
文件: log.py 项目: lht2013/suscourse
    def __init__(self, application):
        WsgiLog.__init__(
            self,
            application,
            logformat = '%(message)s',
            tofile = True,
            toprint = True,

            file = config.file,
            interval = config.interval,
            backups = config.backups
            )
示例#26
0
文件: httpd.py 项目: wunderlins/rot
	def __init__(self, application):
		WsgiLog.__init__(
			self,
			application,
			logformat = '%(message)s',
			tofile = True,
			toprint = True,
			file = config.app_logfile,
			when = "D",
			interval = 1,
			backups = 1000
		)
示例#27
0
文件: config.py 项目: wcong/ridicule
 def __init__(self, application):
     WsgiLog.__init__(
         self,
         application,
         tofile=True,
         toprint=True,
         logformat='[%(asctime)s][%(name)s][%(levelname)s]: %(message)s',
         datefmt='%Y-%m-%dT%H:%M:%S',
         file='log.log',
         interval='d',
         loglevel=logging.DEBUG
     )
示例#28
0
 def __init__(self, application):
     WsgiLog.__init__(
         self,
         application,
         logformat=LOG_FORMAT,
         tofile=True,
         toprint=True,
         file=LOG_FILE,
         interval="w0",
         backups=LOG_BACKUPS,
         datefmt="%Y-%m-%d %H:%M:%S",
     )
示例#29
0
文件: log.py 项目: bekacho/urldammit
 def __init__(self, application):
     WsgiLog.__init__(
         self,
         application,
         logformat = '%(message)s',
         tofile = True,
         file = config.log_file,
         interval = config.log_interval,
         backups = config.log_backups
         )
     sys.stdout = LogIO(self.logger, logging.INFO)
     sys.stderr = LogIO(self.logger, logging.ERROR)
示例#30
0
文件: log.py 项目: blankyin/sports
 def __init__(self, application):
     WsgiLog.__init__(
         self,
         application,
         # logformat = '%(message)s',
         tofile=True,
         toprint=True,
         tostream=True,
         file="logs/wsgilog.log",
         interval="h",  # 日志文件备份间隔时间单位
         backups=24,  # 日志文件备份间隔时间
     )
示例#31
0
 def __init__(self, application):
     WsgiLog.__init__(
         self,
         application,
         logformat='%(message)s',
         tofile=True,
         toprint=True,
         file=config.app_logfile,
         #when = "D",
         #interval = 1,
         #backups = "1000"
     )
示例#32
0
 def __init__(self, application):
     WsgiLog.__init__(
         self,
         application,
         logformat=LOG_FORMAT,
         tofile=True,
         toprint=True,
         file=LOG_FILE,
         interval="w0",
         backups=LOG_BACKUPS,
         datefmt="%Y-%m-%d %H:%M:%S",
     )
示例#33
0
 def __init__(self, application):
     WsgiLog.__init__(
         self,
         application,
         logformat=web.config.log_format,
         debug=True,
         tofile=web.config.log_tofile,
         toprint=False,
         logname="WebLog",  # For the name in logformat
         file=web.config.log_file,
         loglevel=logging.DEBUG,
         interval=web.config.log_interval,
         backups=web.config.log_backups)
示例#34
0
	def __init__(self, application):
		WsgiLog.__init__(
				self,
				application,
				logformat = config.log_format,
				tofile = True,
				tostream = True,
				toprint = False,
				debug = config.log_debug,
				loglevel = config.log_level,
				file = config.log_file,
				interval = config.log_interval,
				backups = config.log_backups
				)
示例#35
0
 def __init__(self, application):
   WsgiLog.__init__(
     self,
     application,
     logformat = web.config.log_format,
     debug     = True,
     tofile    = web.config.log_tofile,
     toprint   =  False,
     logname  = "WebLog", # For the name in logformat
     file      = web.config.log_file,
     loglevel  = logging.DEBUG,
     interval  = web.config.log_interval,
     backups   = web.config.log_backups
   )
示例#36
0
 def __init__(self, application):
     WsgiLog.__init__(self, application, **env)