Comments (5)
hi~ MoSights :
非常感谢您对log4z的关注与支持.
中文日志路径只在VS2005下才会出现 而setlocale是一个全局的调用
log4z本身工作在独立的一个线程下 因此此更改可能会影响到加载log4z的项目.
另外还有一个可能存在的候选方案是使用C的fopen接口 但还没有做过测试进行验证 ^ ^
如果这个方案可行的话 在稍后的版本中会对此问题进行解决.
再次感谢!
------ zsummer .
from log4z.
简单的写了个测试验证了fopen不存在[中文路径/带空格路径]不能识别的问题
查了下vs2005对中文路径支持的相关资料 如下所说:
2005中为了让std::wfstream的路径支持wchar_t,所有底层函数的路径都是转换成wchar_t来进行操作的
而这个转换是通过C库的wcstombos来进行转换的。 而wcstombos则根据当前全局的locale设置进行具体的转换
当全局的locale设置并不是wcstombos所要转换的文字的代码页时 BUG就出现了
so . C 的fopen接口可以避免
from log4z.
新版本中已支持 谢谢提供建议.
from log4z.
测试了下新版本,好像有问题,默认的主log的路径不能自定义的,也就是我设置了自定义路径,发现有两个log文件夹,一个是默认位置的log,一个是自定义的log
2013/5/29 zhangyawei [email protected]
新版本中已支持 谢谢提供建议.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-18592772
.
from log4z.
主LOGGER的name是Main, 可通过配置文件增加[Main]段配置 或者在程序中调用CreateLogger("Main",....) 来进行定制, 参见advance例子.
from log4z.
Related Issues (20)
- 建议封装成动态库 HOT 2
- 怎么输出进程线程ID啊?还有就是输出的顺序有点问题? HOT 1
- 进程长时间不写(跨天),重新新建log文件写入的问题 HOT 1
- 是否支持中文路径? HOT 1
- android compile err.error: 'gcvt' was not declared in this scope. HOT 3
- Thread_local is not supported for iOS 8.4 or earlier. It will cause a compile error in Xcode HOT 1
- 'isnan' was not declared in this scope if (isnan(t)) ;这样的问题怎么解决? HOT 1
- DynamicCreateLogger 接口缺失 HOT 2
- 在VS下断点调试时,并不能立即输出 HOT 2
- API reference is missed HOT 2
- 如何限制日志的大小呢? HOT 1
- error C3861: 'isnan': identifier not found HOT 1
- 日志自动清除 HOT 2
- 可以指定文件名格式和文件夹格式吗
- Log4zFileHandler::open不支持单个2GB以上的文件
- Mismatch (malloc vs operator delete)
- 这个是不是多线写日志文件 自旋锁导致的问题 程序崩溃?
- log4z thread mutex bug? HOT 1
- 请问单条日志容量如何设定?
- Does log4z clear old logs in the logfolder? HOT 1
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 log4z.