forked from ydf0509/nb_log
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
SC-202112251857\Administrator
committed
Jan 8, 2022
1 parent
ae4333a
commit cd452da
Showing
7 changed files
with
72 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,5 @@ | |
|
||
|
||
|
||
# raise(1) | ||
# raise(1) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
from nb_log import get_logger,LogManager | ||
import requests | ||
# from nb_log import get_logger,LogManager | ||
# import requests | ||
# | ||
# get_logger('urllib3') | ||
# requests.get("http://www.baidu.com") | ||
# | ||
# | ||
# LogManager('abcd').preset_log_level(20) | ||
# l1 = get_logger('abcd',log_level_int=20) | ||
# l2 = get_logger('abcd',log_level_int=30) | ||
# | ||
# | ||
# l1.debug('能显示不?') | ||
# | ||
# l1.info('能显示不?') | ||
|
||
get_logger('urllib3') | ||
requests.get("http://www.baidu.com") | ||
import time | ||
|
||
|
||
LogManager('abcd').preset_log_level(20) | ||
l1 = get_logger('abcd',log_level_int=20) | ||
l2 = get_logger('abcd',log_level_int=30) | ||
|
||
|
||
l1.debug('能显示不?') | ||
|
||
l1.info('能显示不?') | ||
print(f'''\033[0;34m 前缀 \033[0;37;44mdfdsffdsf\033[0m ''') |