Giter Site home page Giter Site logo

Comments (5)

zsummer avatar zsummer commented on June 16, 2024

hi~ MoSights :
非常感谢您对log4z的关注与支持.

中文日志路径只在VS2005下才会出现 而setlocale是一个全局的调用
log4z本身工作在独立的一个线程下 因此此更改可能会影响到加载log4z的项目.

另外还有一个可能存在的候选方案是使用C的fopen接口 但还没有做过测试进行验证 ^ ^

如果这个方案可行的话 在稍后的版本中会对此问题进行解决.

再次感谢!
------ zsummer .

from log4z.

zsummer avatar zsummer commented on June 16, 2024

简单的写了个测试验证了fopen不存在[中文路径/带空格路径]不能识别的问题

查了下vs2005对中文路径支持的相关资料 如下所说:
2005中为了让std::wfstream的路径支持wchar_t,所有底层函数的路径都是转换成wchar_t来进行操作的
而这个转换是通过C库的wcstombos来进行转换的。 而wcstombos则根据当前全局的locale设置进行具体的转换
当全局的locale设置并不是wcstombos所要转换的文字的代码页时 BUG就出现了

so . C 的fopen接口可以避免

from log4z.

zsummer avatar zsummer commented on June 16, 2024

新版本中已支持 谢谢提供建议.

from log4z.

MoSights avatar MoSights commented on June 16, 2024

测试了下新版本,好像有问题,默认的主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.

asummersday avatar asummersday commented on June 16, 2024

主LOGGER的name是Main, 可通过配置文件增加[Main]段配置 或者在程序中调用CreateLogger("Main",....) 来进行定制, 参见advance例子.

from log4z.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.