;ò zÅ@c@s dZdZdZdZdZdZdZdZdkl Z l Z l Z d k Z d k Z d kZd kZd kZd kZd kZd gZd „Zd „Zd „Zd„Ze Zd„Zd kZheei<eei<eei<eei<eei<eei  No log output LOG_CRITICAL = 1 => Critical problems (data consistency, module integrity, ...) LOG_ERROR = 2 => Error (runtime exceptions, ...) LOG_WARNING = 3 => Warning (non-blocking exceptions, ...) LOG_NOTICE = 4 => Notices (Special conditions, ...) LOG_DEBUG = 5 => Debug (Debugging information) LOG_PROCESSOR : A dictionnary holding, for each key, the data processor. A data processor is a function that takes only one parameter : the data to print. Default : LogFile for all keys. iÿÿÿÿiiiiii(sstdoutsstderrsexc_infoNiþÿÿÿcGs4to |tjo|tiƒj otd|‚nd}tiƒ}x?t D]7}||}d|t i i|dƒ|df}qQWdt||titiƒƒf}x_|D]W}y*d|jo |}nti|ƒ}Wnti|ƒ}nX||d}q¹Wt||t||ƒnd S( s] Log(level, *args) => Pretty-prints data on the console with additional information. sInvalid log level :ss%s%s:%s:iis %8s %s%s: s s N(s LOG_LEVELslevels LOG_PROCESSORskeyss ValueErrorsstacks tracebacks extract_stacks stackItemssLOG_STACK_DEPTHsdepths stackItemsosspathsbasenames LOG_LABELstimesctimesprsargssdataspprintspformat(slevelsargssprsdatasdepths stackItemsstacks stackItems((sG/mnt/gmirror/ports/www/zope-groupuserfolder/work/GroupUserFolder/Log.pysLog.s*  +&  cGsto |tjoê|tiƒj otd|‚ntititi ƒd ƒƒ}dt |t i t i ƒƒ|f}x_|D]W}y*d|jo |}nti|ƒ}Wnti|ƒ}nX||d}q‡Wt||t ||ƒndS(sX LogCallStack(level, *args) => View the whole call stack for the specified call sInvalid log level :iÿÿÿÿs %8s %s: %s s s N(s LOG_LEVELslevels LOG_PROCESSORskeyss ValueErrorsstringsjoins tracebacks format_lists extract_stacksstacks LOG_LABELstimesctimesprsargssdataspprintspformat(slevelsargssprsdatasstack((sG/mnt/gmirror/ports/www/zope-groupuserfolder/work/GroupUserFolder/Log.pys LogCallStackLs "&  cCsUd}xD|D]<}|dtii|dƒ|d|d|df}q W|SdS(sZ FormatStack(stack) => string Return a 'loggable' version of the stack trace ss %s:%s:%s: %s iiiiN(sretsstacksssosspathsbasename(sstacksssret((sG/mnt/gmirror/ports/www/zope-groupuserfolder/work/GroupUserFolder/Log.pys FormatStackhs :cCs.ttdƒtidtƒttdƒdS(sT LogException () => None Print an exception information on the console s EXCEPTION >>>sfiles <<< EXCEPTIONN(sLogs LOG_NOTICEs tracebacks print_excs LOG_OUTPUT(((sG/mnt/gmirror/ports/www/zope-groupuserfolder/work/GroupUserFolder/Log.pys LogExceptionts cCsti|dƒtiƒdS(s7 LogFile : writes data to the LOG_OUTPUT file. s N(s LOG_OUTPUTswritesdatasflush(slevelslabelsdata((sG/mnt/gmirror/ports/www/zope-groupuserfolder/work/GroupUserFolder/Log.pysLogFile€scCs"tidt|d|dƒdS(s> LogzLog : writes data though Zope's logging facility s IngeniWebss N(szLOGsLOGszLogLevelConverterslevelsdata(slevelslabelsdata((sG/mnt/gmirror/ports/www/zope-groupuserfolder/work/GroupUserFolder/Log.pysLogzLog“sssCRITICALsERROR sWARNING sNOTICE sDEBUG (%s__doc__s LOG_LEVELsLOG_NONEs LOG_CRITICALs LOG_ERRORs LOG_WARNINGs LOG_NOTICEs LOG_DEBUGssyssstdoutsstderrsexc_infostimesthreads threadings tracebacksosspprintsstringsLOG_STACK_DEPTHsLogs LogCallStacks FormatStacks LogExceptions LOG_OUTPUTsLogFileszLOGsTRACEsPANICsERRORsPROBLEMsINFOsDEBUGszLogLevelConvertersLogzLogs LOG_PROCESSORs LOG_LABEL(sLogsstdouts LOG_DEBUGs LOG_WARNINGsLogFiles LOG_LEVELspprints LogCallStacks LOG_ERRORsLOG_STACK_DEPTHsLogzLogsLOG_NONEsstrings LOG_LABELs LOG_CRITICALs LOG_OUTPUTs LOG_PROCESSORszLogLevelConverters LOG_NOTICEsthreads tracebacks FormatStacks threadings LogExceptionsstderrstimeszLOGsexc_infosos((sG/mnt/gmirror/ports/www/zope-groupuserfolder/work/GroupUserFolder/Log.pys?s6             N <