You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
594 B
26 lines
594 B
4 years ago
|
import logging.config
|
||
|
|
||
|
logging.config.dictConfig({
|
||
|
"version": 1,
|
||
|
"disable_existing_loggers": False,
|
||
|
"formatters": {
|
||
|
"standard": {
|
||
|
"format": "%(asctime)s [%(levelname)s] %(name)s: %(message)s"
|
||
|
},
|
||
|
},
|
||
|
"handlers": {
|
||
|
"console": {
|
||
|
"level": "DEBUG",
|
||
|
"formatter": "standard",
|
||
|
"class": "logging.StreamHandler",
|
||
|
},
|
||
|
},
|
||
|
"loggers": {
|
||
|
"python-alipay-sdk": {
|
||
|
"handlers": ["console"],
|
||
|
"level": "DEBUG",
|
||
|
}
|
||
|
}
|
||
|
})
|
||
|
logger = logging.getLogger("python-alipay-sdk")
|