Comments (6)
取消 ELOG_ASSERT(init_ok); 断言,或者你还有其他什么解决思路吗?
from easylogger.
取消 ELOG_ASSERT(init_ok); 断言,或者你还有其他什么解决思路吗?
我现在就是删掉这里的断言解决的,这里应该也不需要断言的吧
from easylogger.
或者就先改为下面方式吧,方便提个 pr 上来吗?
if (!init_ok) {
return;
}
from easylogger.
或者就先改为下面方式吧,方便提个 pr 上来吗?
if (!init_ok) { return; }
这种操作不行的。这样做,子线程就直接退出了,仍然会出现日志输出不完整的问题。这地方不需要对init_ok做判断,因为while循环里有sem_wait,如果没有内容需要输出,就自然等待了
from easylogger.
或者就先改为下面方式吧,方便提个 pr 上来吗?
if (!init_ok) { return; }
已经提了一个PR给您
from easylogger.
好的,感谢你的贡献哈~~
from easylogger.
Related Issues (20)
- demo中的ef_port_read实现问题
- RTOS中连续打印,出现异常 HOT 1
- 有些代码并不是可跨平台移植的 HOT 1
- 用户希望只有某些level的LOG才写入文件 HOT 1
- easylogger支持输出到RTTView吗?
- 是否考虑添加Lock失败,放弃本次log的机制 HOT 2
- 异步输出时的效率和完整性问题
- 能否将等级标签的静态过滤改成动态 HOT 1
- 怎么在FATFS上移植集成? HOT 2
- C++使用方法
- 异步输出丢弃问题?
- 不支持centos9stream
- Linux C++编译异常 HOT 1
- EasyLogger和FlashDB一起使用时重新定义问题 HOT 4
- 动态关闭控制台打印
- A potential data race problem 一个潜在的数据竞争问题 HOT 1
- Improper Restriction of Operations within the Bounds of a Memory Buffer HOT 1
- [FR]添加function、file、line的宏开关
- 有日志老化功能吗 HOT 1
- easylogger交叉编译之后导致ELOG_TERMINAL_ENABLE 无效??
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 easylogger.