Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

aws lambda logging with python logging library

root = logging.getLogger()
if root.handlers:
    for handler in root.handlers:
        root.removeHandler(handler)
logging.basicConfig(format='%(asctime)s %(message)s',level=logging.DEBUG)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #aws #lambda #logging #python #logging #library
ADD COMMENT
Topic
Name
3+7 =