Václav Haisman

Results 212 comments of Václav Haisman

Please try building with CMake instead. That should work.

> I investigated this issue a bit. I'm getting the following error: > > `log4cplus:ERROR Failed to rename file from .\logs\log.txt to .\logs\log.txt.1; error 13` > > I see that...

Line `src/env.cxx:614` is just appending to local string variable. I do not see how that could cause issues here. The only reason I can think of is that since it...

The docs say you need initialization in `main()` because there you can also make sure of de-initalization before you leave `main()`. But log4cplus should actually initialize itself, or at least...

@dartdart26 The code tries hard to make it work. But the static initialization order fiasco is a real problem here. Generally, if you use log4cplsu DLL, it will be initialized...

Don't use global variable instance of `log4cplus::Initializer`. Just put it at the beginning of `main()`. Basically, you cannot use log4cplus before `main()` is entered and after `main()` is left.

I have added `deinitialize()` in 25185bc52efd46af62dbe6cd2acdd1a86ba143 so you can manage the initialization yourself without the `Initializer`. But you *have to* deinitialize at some point.

I do not see why it would be exported in Debug mode and not in the Release mode DLL. Please double check that you have placed the correct version DLL...

[**@jozhuzhu**](https://github.com/jozhuzhu) commented on [12 Apr 2019, 08:19 CEST](https://github.com/log4cplus/log4cplus/issues/403#issuecomment-482452255 "2019-04-12T06:19:29Z - Replied by Github Reply Comments"): > [...] > Is 204800 the miminum size for MaxFileSize of FileAppender ? Yes. This...

You must `exec()` right after `fork()` in the child.