Dizzy Coding

Almost all the tips come from liguidweb. Add epel repo and update rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm yum update If yum complains […]

import logging import sys log = logging.getLogger(__name__) out_hdlr = logging.StreamHandler(sys.stdout) out_hdlr.setFormatter(logging.Formatter(‘%(asctime)s %(message)s’)) out_hdlr.setLevel(logging.INFO) log.addHandler(out_hdlr) log.setLevel(logging.INFO) Then you can do: log.debug(“NO”) […]