Lines Matching +full:- +full:- +full:dllname
1 # Copyright 2001-2013 by Vinay Sajip. All Rights Reserved.
21 Copyright (C) 2001-2013 Vinay Sajip. All Rights Reserved.
103 written to is always "app.log" - when it gets filled up, it is closed
129 for i in range(self.backupCount - 1, 0, -1):
133 #print "%s -> %s" % (sfn, dfn)
157 self.stream.seek(0, 2) #due to non-posix-compliant Windows feature
168 files are kept - the oldest ones are deleted.
178 # S - Seconds
179 # M - Minutes
180 # H - Hours
181 # D - Days
182 # midnight - roll over at midnight
183 # W{0-6} - roll over on a certain day; 0 - Monday
189 self.suffix = "%Y-%m-%d_%H-%M-%S"
190 self.extMatch = r"^\d{4}-\d{2}-\d{2}_\d{2}-\d{2}-\d{2}$"
193 self.suffix = "%Y-%m-%d_%H-%M"
194 self.extMatch = r"^\d{4}-\d{2}-\d{2}_\d{2}-\d{2}$"
197 self.suffix = "%Y-%m-%d_%H"
198 self.extMatch = r"^\d{4}-\d{2}-\d{2}_\d{2}$"
201 self.suffix = "%Y-%m-%d"
202 self.extMatch = r"^\d{4}-\d{2}-\d{2}$"
210 self.suffix = "%Y-%m-%d"
211 self.extMatch = r"^\d{4}-\d{2}-\d{2}$"
245 r = _MIDNIGHT - ((currentHour * 60 + currentMinute) * 60 +
254 # next rollover is simply 6 - 2 - 1, or 3.
257 # Days to rollover is 6 - 5 + 3, or 4. In this case, it's the
267 daysToWait = self.dayOfWeek - day
269 daysToWait = 6 - day + self.dayOfWeek + 1
272 dstNow = t[-1]
273 dstAtRollover = time.localtime(newRolloverAt)[-1]
276 addend = -3600
316 result = result[:len(result) - self.backupCount]
332 dstNow = time.localtime(currentTime)[-1]
333 t = self.rolloverAt - self.interval
338 dstThen = timeTuple[-1]
343 addend = -3600
361 dstAtRollover = time.localtime(newRolloverAt)[-1]
364 addend = -3600
382 under Windows open files cannot be moved or renamed - logging
383 opens the files with exclusive locks - and so there is no need
392 self.dev, self.ino = -1, -1
449 The attribute 'closeOnError' is set to 1 - which means that if
527 left = left - sent
558 An error has occurred during logging. Most likely cause -
574 If there was a problem with the socket, re-establishes the
630 when the network is busy - UDP does not guarantee delivery and
641 http://www.nightmare.com/squirl/python-ext/misc/syslog.py
648 # priorities/facilities are encoded into a single 32-bit quantity, where
649 # the bottom 3 bits are the priority (0-7) and the top 28 bits are the
650 # facility (0-big number). Both the priorities and the facilities map
651 # roughly one-to-one to strings in the syslogd(8) source code. This
663 LOG_DEBUG = 7 # debug-level messages
667 LOG_USER = 1 # random user-level messages
729 #there's more to it than meets the eye - in some locales, lowercasing
811 # curious: when talking to the unix-domain '/dev/log' socket, a
812 # zero-terminator seems to be required. this string is placed
820 integers - if strings are passed, the facility_names and
847 mapping by lowercasing the logging level name because of locale-
869 msg = msg.encode('utf-8')
897 line of the email. To specify a non-standard SMTP port, use the
903 will be either an empty tuple, or a single-value tuple with the name
904 of a keyfile, or a 2-value tuple with the names of the keyfile and
928 If you want to specify a subject line which is record-dependent,
968 registry entry for the specified application name. If no dllname is
975 def __init__(self, appname, dllname=None, logtype="Application"): argument
981 if not dllname:
982 dllname = os.path.split(self._welu.__file__)
983 dllname = os.path.split(dllname[0])
984 dllname = os.path.join(dllname[0], r'win32service.pyd')
985 self.dllname = dllname
987 self._welu.AddSourceToRegistry(appname, dllname, logtype)
1059 Viewer - it needs to be able to access the registry to get the
1095 Send the record to the Web server as a percent-encoded dictionary
1117 h.putheader("Content-type",
1118 "application/x-www-form-urlencoded")
1119 h.putheader("Content-length", str(len(data)))