ó \´žbc@s`ddlmZddlZddlZd„Zdejfd„ƒYZdedd„ZdS(iÿÿÿÿ(tprint_functionNcCs t|ƒS(s$Formatter for unserialisable values.(tstr(tobj((sl/private/var/folders/49/mc35vj0j30g7w0ryjvyy2vz80000gs/T/pip-target-LegFql/lib/python/crhelper/log_helper.pyt_json_formatterst JsonFormattercBs eZdZd„Zd„ZRS(sñAWS Lambda Logging formatter. Formats the log message as a JSON encoded string. If the message is a dict it will be used directly. If the message can be parsed as JSON, then the parse d value is used in the output record. cKsZtt|ƒjƒidd6dd6dd6|_|jj|ƒ|jdtƒ|_dS(Ns %(asctime)st timestamps %(levelname)stlevels %(name)s.%(funcName)s:%(lineno)dtlocationt json_default(tsuperRt__init__t format_dicttupdatetpopRtdefault_json_formatter(tselftkwargs((sl/private/var/folders/49/mc35vj0j30g7w0ryjvyy2vz80000gs/T/pip-target-LegFql/lib/python/crhelper/log_helper.pyR s cs-|jjƒ‰|j|ƒˆd<‡fd†|jjƒDƒ}tˆdtƒreˆd|d#s  tmsgtmessaget exceptiontdefaulttdecodesutf-8(t__dict__tcopyt formatTimeR titemst isinstancetdictt getMessagetjsontloadst TypeErrort ValueErrortexc_infotexc_texttformatExceptiontdumpsRthasattrR(Rtrecordtlog_dictt json_record((Rsl/private/var/folders/49/mc35vj0j30g7w0ryjvyy2vz80000gs/T/pip-target-LegFql/lib/python/crhelper/log_helper.pytformats(    (t__name__t __module__t__doc__R R.(((sl/private/var/folders/49/mc35vj0j30g7w0ryjvyy2vz80000gs/T/pip-target-LegFql/lib/python/crhelper/log_helper.pyR s tDEBUGcKs®|r3x*tjjD]}|j||ƒqWntjj|ƒ|sR|}ntjdƒj|ƒtjdƒj|ƒtjdƒj|ƒtjdƒj|ƒdS(Ntbototboto3tbotocoreturllib3(tloggingtrootthandlerst setFormattertsetLevelt getLogger(Rt formatter_clst boto_levelRthandler((sl/private/var/folders/49/mc35vj0j30g7w0ryjvyy2vz80000gs/T/pip-target-LegFql/lib/python/crhelper/log_helper.pytsetupFs ( t __future__RR"R7Rt FormatterRtNoneR@(((sl/private/var/folders/49/mc35vj0j30g7w0ryjvyy2vz80000gs/T/pip-target-LegFql/lib/python/crhelper/log_helper.pyts    ;