config root man

Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/logging/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/logging/handlers.pyc

hRc@sdZddkZddkZddkZddkZddkZddkZddkZddkZddk	Z	ddk
Z
yddkZWnej
o
dZnXdZdZdZdZdZd!Zd
eifdYZdefd
YZdefdYZdeifdYZdefdYZdeifdYZdeifdYZdeifdYZdeifdYZdeifdYZdefdYZ dS("s
Additional handlers for the logging package for Python. The core package is
based on PEP 282 and comments thereto in comp.lang.python, and influenced by
Apache's log4j system.

Should work under Python versions >= 1.5.2, except that source line
information is not available unless 'sys._getframe()' is.

Copyright (C) 2001-2007 Vinay Sajip. All Rights Reserved.

To use, simply 'import logging' and log away!
iNi<#i=#i>#i?#iii<tBaseRotatingHandlercBs#eZdZddZdZRS(s
    Base class for handlers that rotate log files at a certain point.
    Not meant to be instantiated directly.  Instead, use RotatingFileHandler
    or TimedRotatingFileHandler.
    cCsFtdjo
d}ntii||||||_||_dS(sA
        Use the specified filename for streamed logging
        N(tcodecstNonetloggingtFileHandlert__init__tmodetencoding(tselftfilenameRR((s,/usr/local/lib/python2.5/logging/handlers.pyR7s


	cCsky5|i|o|intii||Wn/ttfj
o
n|i|nXdS(s
        Emit a record.

        Output the record to the file, catering for rollover as described
        in doRollover().
        N(tshouldRollovert
doRolloverRRtemittKeyboardInterruptt
SystemExitthandleError(Rtrecord((s,/usr/local/lib/python2.5/logging/handlers.pyRAsN(t__name__t
__module__t__doc__RRR(((s,/usr/local/lib/python2.5/logging/handlers.pyR1s
tRotatingFileHandlercBs5eZdZdddddZdZdZRS(s
    Handler for logging to a set of files, which switches from one file
    to the next when the current file reaches a certain size.
    taicCsC|djo
d}nti||||||_||_dS(s
        Open the specified file and use it as the stream for logging.

        By default, the file grows indefinitely. You can specify particular
        values of maxBytes and backupCount to allow the file to rollover at
        a predetermined size.

        Rollover occurs whenever the current log file is nearly maxBytes in
        length. If backupCount is >= 1, the system will successively create
        new files with the same pathname as the base file, but with extensions
        ".1", ".2" etc. appended to it. For example, with a backupCount of 5
        and a base file name of "app.log", you would get "app.log",
        "app.log.1", "app.log.2", ... through to "app.log.5". The file being
        written to is always "app.log" - when it gets filled up, it is closed
        and renamed to "app.log.1", and if files "app.log.1", "app.log.2" etc.
        exist, then they are renamed to "app.log.2", "app.log.3" etc.
        respectively.

        If maxBytes is zero, rollover never occurs.
        iRN(RRtmaxBytestbackupCount(RR	RRRR((s,/usr/local/lib/python2.5/logging/handlers.pyRVs


	cCsC|ii|idjoxt|idddD]{}d|i|f}d|i|df}tii|o8tii|oti|nti	||q7q7W|id}tii|oti|nti	|i|n|i
o"ti|id|i
|_nt|id|_dS(s<
        Do a rollover, as described in __init__().
        iiis%s.%ds.1twN(
tstreamtcloseRtrangetbaseFilenametostpathtexiststremovetrenameRRtopen(Rtitsfntdfn((s,/usr/local/lib/python2.5/logging/handlers.pyRqs"


"cCsi|idjoUd|i|}|iidd|iit||ijodSqendS(s
        Determine if rollover should occur.

        Basically, see if the supplied record would cause the file to exceed
        the size limit we have.
        is%s
ii(RtformatRtseekttelltlen(RRtmsg((s,/usr/local/lib/python2.5/logging/handlers.pyR
s#N(RRRRRRR
(((s,/usr/local/lib/python2.5/logging/handlers.pyRQs	tTimedRotatingFileHandlercBs5eZdZdddddZdZdZRS(s
    Handler for logging to a file, rotating the log file at certain timed
    intervals.

    If backupCount is > 0, when rollover is done, no more than backupCount
    files are kept - the oldest ones are deleted.
    thiicCsti||d|ti||_||_tti}|idjod|_d|_	nA|idjod|_d|_	n|idjod|_d	|_	n|id
jp|idjod|_d
|_	n|ii
dod|_t|idjotd|in|iddjp|iddjotd|int|id|_
d
|_	ntd|i|i||_||i|_|idjp|ii
doti|}|d}|d}	|d}
t|d|	d|
}|||_|i
dol|d}||i
joN||i
jo|i
|}
nd||i
d}
|i|
d!|_qqndS("NRtSis%Y-%m-%d_%H-%M-%StMi<s%Y-%m-%d_%H-%MtHs%Y-%m-%d_%HtDtMIDNIGHTis%Y-%m-%dtWiisHYou must specify a day for weekly rollover from 0 to 6 (0 is Monday): %st0t6s-Invalid day specified for weekly rollover: %ss'Invalid rollover interval specified: %siiiiiiiQiiQi:	iiQ(RRtstringtuppertwhenRtintttimetintervaltsuffixt
startswithR)t
ValueErrort	dayOfWeekt
rolloverAtt	localtimet	_MIDNIGHT(RR	R7R:RRtcurrentTimetttcurrentHourt
currentMinutet
currentSecondtrtdayt
daysToWait((s,/usr/local/lib/python2.5/logging/handlers.pyRsT	
	
	
	
 	
	(
	#




cCs.tti}||ijodSndS(s
        Determine if rollover should occur

        record is not used, as we are just comparing times, but it is needed so
        the method siguratures are the same
        ii(R8R9R?(RRRC((s,/usr/local/lib/python2.5/logging/handlers.pyR
scCs:|ii|i|i}ti|}|idti|i|}t	i
i|ot	i|nt	i
|i||idjoOti|id}t||ijo|it	i|dqn|io"ti|id|i|_nt|id|_|i|i|_dS(sx
        do a rollover; in this case, a date/time stamp is appended to the filename
        when the rollover happens.  However, you want the file to be named for the
        start of the interval, not the current time.  If there is a backup count,
        then we have to get a list of matching filenames, sort them and remove
        the one with the oldest suffix.
        t.is.20*RN(RRR?R:R9R@RtstrftimeR;RRRR R!RtglobR)tsortRRR"(RRCt	timeTupleR%ts((s,/usr/local/lib/python2.5/logging/handlers.pyRs 
 

"N(RRRRRR
R(((s,/usr/local/lib/python2.5/logging/handlers.pyR+sV	
t
SocketHandlercBsVeZdZdZdZdZdZdZdZdZ	dZ
RS(	s
    A handler class which writes logging records, in pickle format, to
    a streaming socket. The socket is kept open across logging calls.
    If the peer resets it, an attempt is made to reconnect on the next call.
    The pickle which is sent is that of the LogRecord's attribute dictionary
    (__dict__), so that the receiver does not need to have the logging module
    installed in order to process the logging event.

    To unpickle the record at the receiving end into a LogRecord, use the
    makeLogRecord function.
    cCs\tii|||_||_d|_d|_d|_d|_	d|_
d|_dS(s	
        Initializes the handler with a specific host address and port.

        The attribute 'closeOnError' is set to 1 - which means that if
        a socket error occurs, the socket is silently closed and then
        reopened on the next logging call.
        ig?g>@g@N(RtHandlerRthosttportRtsocktcloseOnErrort	retryTimet
retryStarttretryMaxtretryFactor(RRRRS((s,/usr/local/lib/python2.5/logging/handlers.pyR-s							cCs5tititi}|i|i|if|S(sr
        A factory method which allows subclasses to define the precise
        type of socket they want.
        (tsockettAF_INETtSOCK_STREAMtconnectRRRS(RRO((s,/usr/local/lib/python2.5/logging/handlers.pyt
makeSocketBscCsti}|idjo
d}n||ij}|oy|i|_d|_Wq|idjo|i|_n7|i|i|_|i|ijo|i|_n||i|_qXndS(s
        Try to create a socket, using an exponential backoff with
        a max retry time. Thanks to Robert Olson for the original patch
        (SF #815911) which has been slightly refactored.
        iN(	R9RVRR^RTRWtretryPeriodRYRX(Rtnowtattempt((s,/usr/local/lib/python2.5/logging/handlers.pytcreateSocketKs

cCs|idjo|in|ioy|t|ido|ii|nRd}t|}x<|djo.|ii||}||}||}qgWWqtij
o|ii	d|_qXndS(s
        Send a pickled string to the socket.

        This function allows for partial sends which can happen when the
        network is busy.
        tsendalliN(
RTRRbthasattrRcR)tsendRZterrorR(RROt	sentsofartlefttsent((s,/usr/local/lib/python2.5/logging/handlers.pyRegs 



cCsu|i}|o|i|}d|_nti|id}|o
||_ntidt|}||S(s
        Pickles the record in binary format with a length prefix, and
        returns it ready for transmission across the socket.
        is>LN(	texc_infoR&RtcPickletdumpst__dict__tstructtpackR)(RRteitdummyROtslen((s,/usr/local/lib/python2.5/logging/handlers.pyt
makePickles	

cCsE|io$|io|iid|_ntii||dS(s
        Handle an error during logging.

        An error has occurred during logging. Most likely cause -
        connection lost. Close the socket so that we can retry on the
        next event.
        N(RURTRRRRQR(RR((s,/usr/local/lib/python2.5/logging/handlers.pyRs

cCsVy |i|}|i|Wn/ttfj
o
n|i|nXdS(s
        Emit a record.

        Pickles the record and writes it to the socket in binary format.
        If there is an error with the socket, silently drop the packet.
        If there was a problem with the socket, re-establishes the
        socket.
        N(RsReR
RR(RRRO((s,/usr/local/lib/python2.5/logging/handlers.pyRs	cCs8|io|iid|_ntii|dS(s$
        Closes the socket.
        N(RTRRRRQ(R((s,/usr/local/lib/python2.5/logging/handlers.pyRs


(RRRRR^RbReRsRRR(((s,/usr/local/lib/python2.5/logging/handlers.pyRP s								tDatagramHandlercBs)eZdZdZdZdZRS(s
    A handler class which writes logging records, in pickle format, to
    a datagram socket.  The pickle which is sent is that of the LogRecord's
    attribute dictionary (__dict__), so that the receiver does not need to
    have the logging module installed in order to process the logging event.

    To unpickle the record at the receiving end into a LogRecord, use the
    makeLogRecord function.

    cCs ti|||d|_dS(sP
        Initializes the handler with a specific host address and port.
        iN(RPRRU(RRRRS((s,/usr/local/lib/python2.5/logging/handlers.pyRscCstititi}|S(su
        The factory method of SocketHandler is here overridden to create
        a UDP socket (SOCK_DGRAM).
        (RZR[t
SOCK_DGRAM(RRO((s,/usr/local/lib/python2.5/logging/handlers.pyR^scCsA|idjo|in|ii||i|ifdS(s
        Send a pickled string to a socket.

        This function no longer allows for partial sends which can happen
        when the network is busy - UDP does not guarantee delivery and
        can deliver packets out of sequence.
        N(RTRRbtsendtoRRRS(RRO((s,/usr/local/lib/python2.5/logging/handlers.pyRes(RRRRR^Re(((s,/usr/local/lib/python2.5/logging/handlers.pyRts
		t
SysLogHandlercBsWeZdZdZdZdZdZdZdZdZ	dZ
dZdZdZ
dZdZdZdZdZd	Zd
ZdZdZd
ZdZdZdZdZdZdZhed<ed<ed<e
d<ed<ed<ed<e	d<ed<ed<ed<ed<Zhed <ed!<ed"<ed#<ed$<ed%<e
d&<ed'<ed(<ed)<ed*<ed+<ed,<ed-<ed.<ed/<ed0<ed1<ed2<ed3<Zhdd4<dd5<dd6<dd7<dd8<Z d9e!fed:Z"d;Z#d<Z$d=Z%d>Z&d?Z'd@Z(RS(As
    A handler class which sends formatted logging records to a syslog
    server. Based on Sam Rushing's syslog module:
    http://www.nightmare.com/squirl/python-ext/misc/syslog.py
    Contributed by Nicolas Untz (after which minor refactoring changes
    have been made).
    iiiiiiiiii	i
iiiiiiiitalerttcrittcriticaltdebugtemergterrRftinfotnoticetpanictwarntwarningtauthtauthprivtcrontdaemontkerntlprtmailtnewstsecuritytsyslogtusertuucptlocal0tlocal1tlocal2tlocal3tlocal4tlocal5tlocal6tlocal7tDEBUGtINFOtWARNINGtERRORtCRITICALt	localhostcCstii|||_||_t|tijod|_|i	|n%d|_t
i
t
it
i|_
d|_dS(s
        Initialize a handler.

        If address is specified as a string, a UNIX socket is used. To log to a
        local syslogd, "SysLogHandler(address="/dev/log")" can be used.
        If facility is not specified, LOG_USER is used.
        iiN(RRQRtaddresstfacilityttypettypest
StringTypet
unixsockett_connect_unixsocketRZR[RuRt	formatter(RRR((s,/usr/local/lib/python2.5/logging/handlers.pyRDs				cCstititi|_y|ii|WnNtij
o?|iitititi|_|ii|nXdS(N(RZtAF_UNIXRuR]RfRR\(RR((s,/usr/local/lib/python2.5/logging/handlers.pyRYs
s<%d>%scCsZt|tijo|i|}nt|tijo|i|}n|d>|BS(s
        Encode the facility and priority. You can pass in strings or
        integers - if strings are passed, the facility_names and
        priority_names mapping dictionaries are used to convert them to
        integers.
        i(RRRtfacility_namestpriority_names(RRtpriority((s,/usr/local/lib/python2.5/logging/handlers.pytencodePriorityis
cCs/|io|iintii|dS(s$
        Closes the socket.
        N(RRZRRRQ(R((s,/usr/local/lib/python2.5/logging/handlers.pyRvs
cCs|ii|dS(sK
        Map a logging level name to a key in the priority_names map.
        This is useful in two scenarios: when custom levels are being
        used, and in the case where you can't do a straightforward
        mapping by lowercasing the logging level name because of locale-
        specific issues (see SF #1524081).
        R(tpriority_maptget(Rt	levelName((s,/usr/local/lib/python2.5/logging/handlers.pytmapPriority~scCs|i|}|i|i|i|i|i|f}yu|ioQy|ii|Wqti	j
o'|i
|i|ii|qXn|ii||iWn/t
tfj
o
n|i|nXdS(s
        Emit a record.

        The record is formatted, and then sent to the syslog server. If
        exception information is present, it is NOT sent to the server.
        N(R&tlog_format_stringRRRt	levelnameRRZReRfRRRvR
RR(RRR*((s,/usr/local/lib/python2.5/logging/handlers.pyRs"

()RRRt	LOG_EMERGt	LOG_ALERTtLOG_CRITtLOG_ERRtLOG_WARNINGt
LOG_NOTICEtLOG_INFOt	LOG_DEBUGtLOG_KERNtLOG_USERtLOG_MAILt
LOG_DAEMONtLOG_AUTHt
LOG_SYSLOGtLOG_LPRtLOG_NEWStLOG_UUCPtLOG_CRONtLOG_AUTHPRIVt
LOG_LOCAL0t
LOG_LOCAL1t
LOG_LOCAL2t
LOG_LOCAL3t
LOG_LOCAL4t
LOG_LOCAL5t
LOG_LOCAL6t
LOG_LOCAL7RRRtSYSLOG_UDP_PORTRRRRRRR(((s,/usr/local/lib/python2.5/logging/handlers.pyRws																																				
		
tSMTPHandlerc
BszeZdZdZdZddddddd	gZdd
ddd
ddddddddg
ZdZdZ	RS(sK
    A handler class which sends an SMTP email for each logging event.
    cCstii|t|tijo"|\}}||_||_n||_d|_||_	t|ti
jo
|g}n||_||_dS(s
        Initialize the handler.

        Initialize the instance with the from and to addresses and subject
        line of the email. To specify a non-standard SMTP port, use the
        (host, port) tuple format for the mailhost argument.
        N(
RRQRRRt	TupleTypetmailhosttmailportRtfromaddrRttoaddrstsubject(RRRRRRRRS((s,/usr/local/lib/python2.5/logging/handlers.pyRs	
			
	cCs|iS(s
        Determine the subject for the email.

        If you want to specify a subject line which is record-dependent,
        override this method.
        (R(RR((s,/usr/local/lib/python2.5/logging/handlers.pyt
getSubjectstMontTuetWedtThutFritSattSuntJantFebtMartAprtMaytJuntJultAugtSeptOcttNovtDecc	Csatiti\	}}}}}}}}}	d|i|||i|||||f}
|
S(s
        Return the current date and time formatted for a MIME header.
        Needed for Python 1.5.2 (no email package available)
        s#%s, %02d %3s %4d %02d:%02d:%02d GMT(R9tgmtimetweekdaynamet	monthname(RtyeartmonthRHthhtmmtsstwdtytzRO((s,/usr/local/lib/python2.5/logging/handlers.pyt	date_times0
cCsyddk}yddkl}Wn|i}nX|i}|p
|i}n|i|i|}|i|}d|i	t
i|id|i
|||f}|i|i	|i||iWn/ttfj
o
n|i|nXdS(sd
        Emit a record.

        Format the record and send it to the specified addressees.
        iN(t
formatdates-From: %s
To: %s
Subject: %s
Date: %s

%st,(tsmtplibtemail.UtilsRRRt	SMTP_PORTtSMTPRR&RR5tjoinRRtsendmailtquitR
RR(RRRRRStsmtpR*((s,/usr/local/lib/python2.5/logging/handlers.pyRs,
	
N(
RRRRRRRRRR(((s,/usr/local/lib/python2.5/logging/handlers.pyRs				tNTEventLogHandlercBsJeZdZdddZdZdZdZdZdZ	RS(	s
    A handler class which sends events to the NT Event Log. Adds a
    registry entry for the specified application name. If no dllname is
    provided, win32service.pyd (which contains some basic message
    placeholders) is used. Note that use of these placeholders will make
    your event logs big, as the entire message source is held in the log.
    If you want slimmer logs, you have to pass in the name of your own DLL
    which contains the message definitions you want to use in the event log.
    tApplicationc	Cs@tii|yddk}ddk}||_||_|pKtii	|ii
}tii	|d}tii|dd}n||_||_
|ii||||i|_h|iti<|iti<|iti<|iti<|iti<|_Wn!tj
odGHd|_nXdS(Niiswin32service.pydsWThe Python Win32 extensions for NT (service, event logging) appear not to be available.(RRQRtwin32evtlogutiltwin32evtlogtappnamet_weluRRtsplitt__file__RtdllnametlogtypetAddSourceToRegistrytEVENTLOG_ERROR_TYPEtdeftypetEVENTLOG_INFORMATION_TYPERRtEVENTLOG_WARNING_TYPERRRttypemaptImportErrorR(RRRRRR((s,/usr/local/lib/python2.5/logging/handlers.pyRs,				cCsdS(sy
        Return the message ID for the event record. If you are using your
        own messages, you could do this by having the msg passed to the
        logger being an ID rather than a formatting string. Then, in here,
        you could use a dictionary lookup to get the message ID. This
        version returns 1, which is the base message ID in win32service.pyd.
        i((RR((s,/usr/local/lib/python2.5/logging/handlers.pytgetMessageIDscCsdS(s
        Return the event category for the record.

        Override this if you want to specify your own categories. This version
        returns 0.
        i((RR((s,/usr/local/lib/python2.5/logging/handlers.pytgetEventCategory&scCs|ii|i|iS(s
        Return the event type for the record.

        Override this if you want to specify your own types. This version does
        a mapping using the handler's typemap attribute, which is set up in
        __init__() to a dictionary which contains mappings for DEBUG, INFO,
        WARNING, ERROR and CRITICAL. If you are using your own levels you will
        either need to override this method or place a suitable dictionary in
        the handler's typemap attribute.
        (RRtlevelnoR	(RR((s,/usr/local/lib/python2.5/logging/handlers.pytgetEventType/sc	Cs|ioyb|i|}|i|}|i|}|i|}|ii|i||||gWqttfj
o
q|i	|qXndS(s
        Emit a record.

        Determine the message ID, event category and event type. Then
        log the message in the NT event log.
        N(
RRRRR&tReportEventRR
RR(RRtidtcatRR*((s,/usr/local/lib/python2.5/logging/handlers.pyR<s
&cCstii|dS(sS
        Clean up this handler.

        You can remove the application name from the registry as a
        source of event log entries. However, if you do this, you will
        not be able to see the events as you intended in the Event Log
        Viewer - it needs to be able to access the registry to get the
        DLL name.
        N(RRQR(R((s,/usr/local/lib/python2.5/logging/handlers.pyROsN(
RRRRRRRRRR(((s,/usr/local/lib/python2.5/logging/handlers.pyRs		
			
	tHTTPHandlercBs,eZdZddZdZdZRS(s^
    A class which sends records to a Web server, using either GET or
    POST semantics.
    tGETcCsXtii|ti|}|djo
tdn||_||_||_dS(sr
        Initialize the instance with the host, the request URL, and the method
        ("GET" or "POST")
        RtPOSTsmethod must be GET or POSTN(RR(	RRQRR5R6R=RRturltmethod(RRRRR((s,/usr/local/lib/python2.5/logging/handlers.pyRas

		cCs|iS(s
        Default implementation of mapping the log record into a dict
        that is sent as the CGI data. Overwrite in your class.
        Contributed by Franz  Glasner.
        (Rm(RR((s,/usr/local/lib/python2.5/logging/handlers.pytmapLogRecordnsc
Csykddk}ddk}|i}|i|}|i}|i|i|}|idjoAti	|ddjo
d}nd}|d||f}n|i
|i|ti	|d}	|	djo||	 }n|id	||id
jo0|idd|id
tt
|n|i|id
jo|i|n|iWn/ttfj
o
n|i|nXdS(sh
        Emit a record.

        Send the record to the Web server as an URL-encoded dictionary
        iNRt?it&s%c%st:tHostRsContent-types!application/x-www-form-urlencodedsContent-length(thttplibturllibRRtHTTPRt	urlencodeRRR5tfindt
putrequestt	putheadertstrR)t
endheadersRetgetreplyR
RR(
RRRR RRR,RtdatatsepR#((s,/usr/local/lib/python2.5/logging/handlers.pyRvs8		

	 
(RRRRRR(((s,/usr/local/lib/python2.5/logging/handlers.pyR\s
	tBufferingHandlercBs;eZdZdZdZdZdZdZRS(s
  A handler class which buffers logging records in memory. Whenever each
  record is added to the buffer, a check is made to see if the buffer should
  be flushed. If it should, then flush() is expected to do what's needed.
    cCs&tii|||_g|_dS(s>
        Initialize the handler with the buffer size.
        N(RRQRtcapacitytbuffer(RR,((s,/usr/local/lib/python2.5/logging/handlers.pyRs	cCst|i|ijS(s
        Should the handler flush its buffer?

        Returns true if the buffer is up to capacity. This method can be
        overridden to implement custom flushing strategies.
        (R)R-R,(RR((s,/usr/local/lib/python2.5/logging/handlers.pytshouldFlushscCs2|ii||i|o|indS(s
        Emit a record.

        Append the record. If shouldFlush() tells us to, call flush() to process
        the buffer.
        N(R-tappendR.tflush(RR((s,/usr/local/lib/python2.5/logging/handlers.pyRscCs
g|_dS(sw
        Override to implement custom flushing behaviour.

        This version just zaps the buffer to empty.
        N(R-(R((s,/usr/local/lib/python2.5/logging/handlers.pyR0scCs|itii|dS(sp
        Close the handler.

        This version just flushes and chains to the parent class' close().
        N(R0RRQR(R((s,/usr/local/lib/python2.5/logging/handlers.pyRs
(RRRRR.RR0R(((s,/usr/local/lib/python2.5/logging/handlers.pyR+s					t
MemoryHandlercBsDeZdZeiddZdZdZdZ	dZ
RS(s
    A handler class which buffers logging records in memory, periodically
    flushing them to a target handler. Flushing occurs whenever the buffer
    is full, or when an event of a certain severity or greater is seen.
    cCs&ti||||_||_dS(s
        Initialize the handler with the buffer size, the level at which
        flushing should occur and an optional target.

        Note that without a target being set either here or via setTarget(),
        a MemoryHandler is no use to anyone!
        N(R+Rt
flushLevelttarget(RR,R2R3((s,/usr/local/lib/python2.5/logging/handlers.pyRs	cCs)t|i|ijp|i|ijS(sP
        Check for buffer full or a record at the flushLevel or higher.
        (R)R-R,RR2(RR((s,/usr/local/lib/python2.5/logging/handlers.pyR.scCs
||_dS(s:
        Set the target handler for this handler.
        N(R3(RR3((s,/usr/local/lib/python2.5/logging/handlers.pyt	setTargetscCs?|io1x!|iD]}|ii|qWg|_ndS(s
        For a MemoryHandler, flushing means just sending the buffered
        records to the target, if there is one. Override if you want
        different behaviour.
        N(R3R-thandle(RR((s,/usr/local/lib/python2.5/logging/handlers.pyR0s


cCs$|id|_ti|dS(sD
        Flush, set the target to None and lose the buffer.
        N(R0RR3R+R(R((s,/usr/local/lib/python2.5/logging/handlers.pyRs
	N(RRRRRRRR.R4R0R(((s,/usr/local/lib/python2.5/logging/handlers.pyR1s			iiQ(!RtsysRRZRRR5RkRnR9RLRR
RtDEFAULT_TCP_LOGGING_PORTtDEFAULT_UDP_LOGGING_PORTtDEFAULT_HTTP_LOGGING_PORTtDEFAULT_SOAP_LOGGING_PORTRRARRRR+RQRPRtRwRRRR+R1(((s,/usr/local/lib/python2.5/logging/handlers.pys<module>s,x G&Rd@3

Man Man