Comments (7)
Python 3.6.8的logging模块中manager没有_clear_cache方法
['class', 'delattr', 'dict', 'dir', 'doc', 'eq', 'format', 'ge', 'getattribute', 'gt', 'hash', 'init', 'init_subclass', 'le', 'lt', 'module', 'ne', 'new', 'reduce', 'reduce_ex', 'repr', 'setattr', 'sizeof', 'str', 'subclasshook', 'weakref', '_fixupChildren', '_fixupParents', 'disable', 'emittedNoHandlerWarning', 'getLogger', 'logRecordFactory', 'loggerClass', 'loggerDict', 'root', 'setLogRecordFactory', 'setLoggerClass']
from funboost.
然后拷贝了python3.9版本的logging, 用cmd和conda打开没有颜色
python3.6 + python3.9logging
python3.9 anaconda
from funboost.
win cmd一直是显示不了颜色的,需要用powershell,你是win7吗。为什么还在用cmd,现在都用powershell 香多了。
或者pycahrm中才能显示颜色
from funboost.
def revision_setLevel(self, level):
"""
Set the logging level of this logger. level must be an int or a str.
"""
level2 = LogManager.preset_name__level_map.get(self.name, level)
if level2 != level:
very_nb_print(f'日志命名空间 {self.name} 已经锁定了为了 {level2} 级别 ,后续不可以更改为 {level} 级别')
self.level = _checkLevel(level2)
self.manager._clear_cache()
上周新加的猴子补丁,没有使用python3.6测试过,nb_log包需要改一下兼容一下 python3.6
from funboost.
需要用win11的cmd或者 powershell日志才能显示彩色,win7的cmd是显示不了颜色的。或者你在pycahrm中运行
from funboost.
你升级到 funboost20.3,或者 pip install nb_log==8.2,解决3.6 logging包的 Manager没有 _clear_cache 方法的问题
from funboost.
感谢, 更新后已经正常了.
from funboost.
Related Issues (20)
- [BUG] run_consumer_with_multi_process HOT 1
- 远程的问题 HOT 9
- 建议:项目工程可以搞的正式一点,readme和文档默认成英语,这样能更好的推广到全球 HOT 3
- sqlite作为中间件例子在mac/linux运行,报错 read-only [用户文件夹权限问题,自己修改个文件夹] HOT 4
- 如何快捷的停止multi_process_consume 这个消费函数的所有进程 HOT 3
- base_publisher的publish函数好像有点问题[用户没了解python字典是可变对象] HOT 8
- 发现一个有趣的问题 HOT 3
- 如果两个booster嵌套使用的话,多进程好像运行会阻塞? HOT 21
- delay
- delay 任务支持retry的时候设置countdown吗? HOT 3
- django的模块引入和启动 HOT 16
- pip包太厚重了, 能不能搞精简一点的, 比如我就只需要redis跟异步就可以了, 其他的完全不需要 HOT 10
- 接受非booster传过来的消息,没有extra, 导致consume 失败 HOT 1
- result_web. index.html 中 其中的一个css文件无法下载了 “bootstrap.min.css” HOT 1
- 姑且提醒下这个repo错别字连篇
- [BUG]ModuleNotFoundError: No module named 'db_libs' [contrib里面是作者额外贡献的功能,需要用户自己安装相关三方包] HOT 3
- 请教: 如何使用 nb_log 打印task_id HOT 19
- BUG: AttributeError("'_thread._local' object has no attribute 'function_result_status'" HOT 7
- 【bug】可能存在的bug- 在线急等修复(我就不用再加猴子补丁了~~)[用户自己写法错误问题] HOT 8
- windows上的脚本到linux上远程执行时的路径不正确 HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from funboost.