We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
as pointed out in #52 using standard modules makes things easier on users. (but perhaps harder on us?)
The text was updated successfully, but these errors were encountered:
Jerome uses import logging in his code, and I think it makes things easier to read / program too. He uses:
import logging
log_level = logging.WARNING if args.verbosity == 1: log_level = logging.INFO if args.verbosity >= 2: log_level = logging.DEBUG logging.basicConfig( format='%(asctime)s %(message)s', level=log_level, stream=sys.stdout)
(I guess you could use stream=args.logfile with
stream=args.logfile
parser.add_argument("-g","--logfile", dest="logfile", type=argparse.FileType('r'), default='-', help="name of log file (or '-' for stdout)")
then
logging.debug("Some internal stuff") logging.info("Message") logging.warning("Something's wrong")
Sorry, something went wrong.
No branches or pull requests
as pointed out in #52 using standard modules makes things easier on users. (but perhaps harder on us?)
The text was updated successfully, but these errors were encountered: