Logging Log Output Module

Source: Internet
Author: User

Import logging

This module is used to print out the output format

Logging.basicconfig (level=logging.info,format= '% (asctime) s% (levelname) s [% (ThreadName) s]-% (message) s ')

Level

Logging. INFO: Log Level

Format

% (asctime) s: Print out time

% (levelname) s: Print out the log level

% (threadname) s: Thread name

% (message) s: Output message is typed


Print out the output information:

Logging.info (' Test ')

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/8C/DC/wKioL1h8RLDABXW5AAAOiST4sh4662.png "title=" Pfzdm0q}2ltyujim9w6y7{q.png "alt=" Wkiol1h8rldabxw5aaaoist4sh4662.png "/>

This article is from the "burning Years of Passion" blog, please be sure to keep this source http://liuzhengwei521.blog.51cto.com/4855442/1892235

Logging Log Output Module

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.