log4cplus-devel Mailing List for log4cplus (Page 5)
Logging Framework for C++
Brought to you by:
wilx
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
(2) |
Apr
(2) |
May
(1) |
Jun
|
Jul
|
Aug
(2) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2005 |
Jan
|
Feb
(1) |
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
2006 |
Jan
|
Feb
(1) |
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
(3) |
Nov
(7) |
Dec
(15) |
2007 |
Jan
(19) |
Feb
(23) |
Mar
(40) |
Apr
(36) |
May
(18) |
Jun
(8) |
Jul
(10) |
Aug
(18) |
Sep
(18) |
Oct
(4) |
Nov
(1) |
Dec
(4) |
2008 |
Jan
(2) |
Feb
(1) |
Mar
(4) |
Apr
(16) |
May
(17) |
Jun
(15) |
Jul
(23) |
Aug
(7) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
2009 |
Jan
(2) |
Feb
(1) |
Mar
(1) |
Apr
(7) |
May
|
Jun
(5) |
Jul
(2) |
Aug
(9) |
Sep
|
Oct
(4) |
Nov
(6) |
Dec
(4) |
2010 |
Jan
(2) |
Feb
(2) |
Mar
(6) |
Apr
(5) |
May
(2) |
Jun
(13) |
Jul
(5) |
Aug
|
Sep
(2) |
Oct
(2) |
Nov
|
Dec
|
2011 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
(2) |
Jun
(11) |
Jul
(1) |
Aug
(4) |
Sep
(5) |
Oct
|
Nov
(4) |
Dec
|
2012 |
Jan
|
Feb
(13) |
Mar
(3) |
Apr
(5) |
May
(18) |
Jun
(22) |
Jul
(11) |
Aug
(25) |
Sep
(56) |
Oct
(1) |
Nov
(28) |
Dec
(3) |
2013 |
Jan
(66) |
Feb
(40) |
Mar
(61) |
Apr
(1) |
May
(45) |
Jun
(30) |
Jul
(30) |
Aug
(46) |
Sep
(23) |
Oct
(43) |
Nov
(95) |
Dec
(27) |
2014 |
Jan
(16) |
Feb
(19) |
Mar
(23) |
Apr
(18) |
May
(22) |
Jun
(12) |
Jul
(15) |
Aug
(16) |
Sep
(30) |
Oct
(10) |
Nov
(10) |
Dec
(5) |
2015 |
Jan
(2) |
Feb
(7) |
Mar
|
Apr
(1) |
May
(10) |
Jun
(3) |
Jul
(1) |
Aug
(5) |
Sep
|
Oct
(6) |
Nov
(2) |
Dec
(15) |
2016 |
Jan
(21) |
Feb
(6) |
Mar
(30) |
Apr
(12) |
May
(11) |
Jun
(4) |
Jul
(2) |
Aug
(7) |
Sep
(13) |
Oct
|
Nov
(6) |
Dec
(8) |
2017 |
Jan
(21) |
Feb
(5) |
Mar
(7) |
Apr
(3) |
May
|
Jun
(4) |
Jul
(18) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
(1) |
May
(4) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
2019 |
Jan
|
Feb
|
Mar
(1) |
Apr
(1) |
May
|
Jun
|
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
2020 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2021 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
From: Václav H. <vha...@gm...> - 2015-08-02 12:04:44
|
Hi. I have released log4cplus 1.1.3-RC5: - Fixed "most vexing parse" issue when using LOG4CPLUS_C_STR_TO_TSTRING(). - Fixed AcceptOnMatch property function in filters default to true value. - Fixed GitHub bug #92. DailyRollingFileAppender rollover time was drifting. - Added LOG4CPLUS_ENABLE_DECORATED_LIBRARY_NAME option to CMake builds to produce log4cplus library without Unicode and/or static library decoration. -- VH |
From: Chepurovskiy D. <dm...@gm...> - 2015-07-15 20:39:26
|
Hello! On my computer with Ubuntu 14.10 amd64 I've installed liblog4cplus-1.0-4, liblog4cplus-dbg. While compilation of program I've got home/dm3ch/Workspace/Refregiration-Telemetry/Device/src/monitor_proc.cpp:20:27: fatal error: log4cplus/mdc.h: No such file or directory #include <log4cplus/mdc.h> How can I fix it? |
From: Václav H. <vha...@gm...> - 2015-04-06 09:07:24
|
On 24.5.2013 14:58, Brice Copy wrote: > Hello, > >>> I am attaching a patch (now part of both trunk and 1.1.x branch) >>> that should allow you to configure log4cplus with >>> --disable-so-version and --disable-release-version flags. The >>> produces shared library is liblog4cplus.so (on Ubuntu). HTH. > > Thanks very much for your fast action, I have tested the 1.1.x branch > on Ubuntu, Red Hat EL5 32 bits and 64 bits and it works fine. > > Just for info, we're looking into using log4cplus to perform logging > inside the CERN middleware protocol (DIP) that allows the Large > Hadron Collider (LHC) and the 4 major CERN experiments to exchange > information and trigger particle observation data taking. Once we go > to production, we would gladly join the list of satisfied Log4cplus > users ! I wonder how this worked out for you. Is log4cplus being used in CERN for LHC related software now? :) > > > Cheers, > > Brice > > -- VH |
From: Václav Z. <vha...@gm...> - 2015-01-04 16:28:58
|
Hi. I have released log4cplus 1.1.3-RC4: - Allow negative maximal length in pattern specifier to make trimming of end instead of beginning possible. E.g., allow `%.-1p` to get initial letters of log level. - Visual Studio DLL builds now have a resource with basic information about the library. (Oskari Timperi) - `LOG4CPLUS_*_FMT()` macros can now be invoked with just formatting string, without additional arguments. (Zhang Shengfa) - Added `setCurrentThreadName()` and `setCurrentThreadName2()` to allow setting current thread name to custom string instead of the default stringified thread ID. (Zhang Shengfa) |
From: Václav Z. <vha...@gm...> - 2015-01-04 14:58:48
|
Hi. I have released log4cplus 1.2.0-RC3. * Fixed various issues related to unspecified behaviors which manifested when log4cplus was compiled using Clang. * SysLogAppender now recognize |SyslogHost| property as synonym for |host| property. * Improved compatibility of |TTCCLayout| with log4j’s. Added |ThreadPrinting|, |CategoryPrefixing| and |ContextPrinting| configuration properties. * Allow negative maximal length in pattern specifier to make trimming of end instead of beginning possible. E.g., allow |%.-1p| to get initial letters of log level. * New appender TimeBasedRollingFileAppender. (Alexander Malinin) * |LOG4CPLUS_*_FMT()| macros can now be invoked with just formatting string, without additional arguments. (Zhang Shengfa) * Insert to/from string/log level conversion functions to the beginning of vector to favour user defined log levels and conversion functions. |
From: Francesco G. <fra...@gm...> - 2014-12-11 13:19:14
|
Hi Václav, yes you are perfectly right this is the reason. cheers On Thu, Dec 11, 2014 at 1:11 PM, Václav Zeman <vha...@gm...> wrote: > On 3 December 2014 at 12:50, Francesco Garelli wrote: > > Hi, > > > > I am wondering if somebody could help me resolve this problem. > > I am working on a QT application running on windows built using QT 5 and > GCC > > 4.8.2, > > I configured log4cplus to create a static lib built using gcc but i have > > difficulty using it > > on the Windows build. > > When i try to build the project I get a lot of unresolved externals > like if > > the library has not been > > used at all. > > > > Since you say you are linking with log4cplus, I think it might be > UNICODE versus non-UNICODE build issues. Can you give us an example of > what symbols seem to be missing? > > -- > VZ > |
From: Václav Z. <vha...@gm...> - 2014-12-11 13:11:34
|
On 3 December 2014 at 12:50, Francesco Garelli wrote: > Hi, > > I am wondering if somebody could help me resolve this problem. > I am working on a QT application running on windows built using QT 5 and GCC > 4.8.2, > I configured log4cplus to create a static lib built using gcc but i have > difficulty using it > on the Windows build. > When i try to build the project I get a lot of unresolved externals like if > the library has not been > used at all. > Since you say you are linking with log4cplus, I think it might be UNICODE versus non-UNICODE build issues. Can you give us an example of what symbols seem to be missing? -- VZ |
From: Francesco G. <fra...@gm...> - 2014-12-03 11:50:42
|
Hi, I am wondering if somebody could help me resolve this problem. I am working on a QT application running on windows built using QT 5 and GCC 4.8.2, I configured log4cplus to create a static lib built using gcc but i have difficulty using it on the Windows build. When i try to build the project I get a lot of unresolved externals like if the library has not been used at all. cheers |
From: Václav Z. <vha...@gm...> - 2014-11-26 06:56:50
|
On 26 November 2014 at 02:55, Joe Hellmers <joe...@gq...> wrote: How can I setup Eclipse to make use of log4cplus? > > I do not understand the question. What exactly are you aiming for? -- VZ |
From: Joe H. <joe...@gq...> - 2014-11-26 02:08:26
|
How can I setup Eclipse to make use of log4cplus? Joe Hellmers GQuad Research HPC and Big Data Solutions Architect Phone: 619-749-0528 Mobile: 619-820-4236 Email: joe...@gq... <mailto:joe...@gq...> Website: http://www.gquadresearch.com <http://www.gquadresearch.com/> |
From: Václav Z. <vha...@gm...> - 2014-06-30 05:03:00
|
On 30.6.2014 06:31, Manuj Gupta wrote: > When you say “try to imbue it with |en_US.UTF-8|” I am guessing you > are talking about using > > |log4cplus.appender.DATA.Locale=|| en_US.UTF-8| right?|| Yes. > > > > > > > > > *From:*Václav Zeman [mailto:vha...@gm...] > *Sent:* 29 June 2014 11:44 PM > *To:* log...@li... > *Subject:* Re: [Log4cplus-devel] how to change log4cplu log file to utf8 > > > > On 26.6.2014 06:54, Manuj Gupta wrote: > > I have been handed a code which uses log4cplus as the logger > application. How can I generate a UTF8 logging file for it?. The > logfile being created by log4cplus is in ASCII format at the moment. > > I have tried the follow > > Setting the file encoding of the log file by following > instructions at Change File Encoding to utf-8 via vim in a script > <http://stackoverflow.com/questions/2311750/change-file-encoding-to-utf-8-via-vim-in-a-script> > > |vi dataLog.txt| > > |:set bomb| > > |:set fileencoding=utf-8| > > |:wq| > > I have also tried changing the .properties file > > |log4cplus.logger.dl=TRACE,DATA| > > | | > > |log4cplus.appender.DATA=log4cplus::RollingFileAppender| > > |log4cplus.appender.DATA.Locale=en-US| > > |log4cplus.appender.DATA.File=/usr/vm/log/data/dataLog.txt| > > |log4cplus.appender.DATA.MaxFileSize=5000KB| > > |log4cplus.appender.DATA.MaxBackupIndex=5| > > |log4cplus.appender.DATA.layout=log4cplus::PatternLayout| > > |log4cplus.appender.DATA.layout.ConversionPattern=%D{%d/%b/%y %H:%M:%S.%q} %-9c %-5p %m%n| > > I am not sure on the exact version of log4cplus however a locate > resulted in the following > > |/usr/lib/liblog4cplus-1.0.so.4| > > |/usr/lib/liblog4cplus-1.0.so.4.0.0| > > |/usr/lib/liblog4cplus-1.0.so.4.0.0_load| > > |/usr/lib/liblog4cplus.so| > > > > Copying from my SO answer <http://stackoverflow.com/q/24422449/341065>: > > Since log4cplus 1.1.0-RC10 you can specify locale to be imbued into > |std::filestream| used by file appenders. See FileAppender > documentation > <http://log4cplus.sourceforge.net/docs/html/classlog4cplus_1_1FileAppender.html>, > especially the |Locale| property. In your case, try to imbue it with > |en_US.UTF-8|. > -- VZ |
From: Manuj G. <ma...@hc...> - 2014-06-30 04:31:55
|
When you say “try to imbue it with en_US.UTF-8” I am guessing you are talking about using log4cplus.appender.DATA.Locale= en_US.UTF-8 right? From: Václav Zeman [mailto:vha...@gm...] Sent: 29 June 2014 11:44 PM To: log...@li... Subject: Re: [Log4cplus-devel] how to change log4cplu log file to utf8 On 26.6.2014 06:54, Manuj Gupta wrote: I have been handed a code which uses log4cplus as the logger application. How can I generate a UTF8 logging file for it?. The logfile being created by log4cplus is in ASCII format at the moment. I have tried the follow Setting the file encoding of the log file by following instructions at Change File Encoding to utf-8 via vim in a script<http://stackoverflow.com/questions/2311750/change-file-encoding-to-utf-8-via-vim-in-a-script> vi dataLog.txt :set bomb :set fileencoding=utf-8 :wq I have also tried changing the .properties file log4cplus.logger.dl=TRACE,DATA log4cplus.appender.DATA=log4cplus::RollingFileAppender log4cplus.appender.DATA.Locale=en-US log4cplus.appender.DATA.File=/usr/vm/log/data/dataLog.txt log4cplus.appender.DATA.MaxFileSize=5000KB log4cplus.appender.DATA.MaxBackupIndex=5 log4cplus.appender.DATA.layout=log4cplus::PatternLayout log4cplus.appender.DATA.layout.ConversionPattern=%D{%d/%b/%y %H:%M:%S.%q} %-9c %-5p %m%n I am not sure on the exact version of log4cplus however a locate resulted in the following /usr/lib/liblog4cplus-1.0.so.4 /usr/lib/liblog4cplus-1.0.so.4.0.0 /usr/lib/liblog4cplus-1.0.so.4.0.0_load /usr/lib/liblog4cplus.so Copying from my SO answer<http://stackoverflow.com/q/24422449/341065>: Since log4cplus 1.1.0-RC10 you can specify locale to be imbued into std::filestream used by file appenders. See FileAppender documentation<http://log4cplus.sourceforge.net/docs/html/classlog4cplus_1_1FileAppender.html>, especially the Locale property. In your case, try to imbue it with en_US.UTF-8. -- VZ ::DISCLAIMER:: ---------------------------------------------------------------------------------------------------------------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects. ---------------------------------------------------------------------------------------------------------------------------------------------------- |
From: Václav Z. <vha...@gm...> - 2014-06-29 18:13:50
|
On 26.6.2014 06:54, Manuj Gupta wrote: > I have been handed a code which uses log4cplus as the logger > application. How can I generate a UTF8 logging file for it?. The > logfile being created by log4cplus is in ASCII format at the moment. > > I have tried the follow > > Setting the file encoding of the log file by following instructions at > Change File Encoding to utf-8 via vim in a script > <http://stackoverflow.com/questions/2311750/change-file-encoding-to-utf-8-via-vim-in-a-script> > > |vi dataLog.txt| > |:set bomb| > |:set fileencoding=utf-8| > |:wq| > > I have also tried changing the .properties file > > |log4cplus.logger.dl=TRACE,DATA| > | | > |log4cplus.appender.DATA=log4cplus::RollingFileAppender| > |log4cplus.appender.DATA.Locale=en-US| > |log4cplus.appender.DATA.File=/usr/vm/log/data/dataLog.txt| > |log4cplus.appender.DATA.MaxFileSize=5000KB| > |log4cplus.appender.DATA.MaxBackupIndex=5| > |log4cplus.appender.DATA.layout=log4cplus::PatternLayout| > |log4cplus.appender.DATA.layout.ConversionPattern=%D{%d/%b/%y %H:%M:%S.%q} %-9c %-5p %m%n| > > I am not sure on the exact version of log4cplus however a locate > resulted in the following > > |/usr/lib/liblog4cplus-1.0.so.4| > |/usr/lib/liblog4cplus-1.0.so.4.0.0| > |/usr/lib/liblog4cplus-1.0.so.4.0.0_load| > |/usr/lib/liblog4cplus.so| > Copying from my SO answer <http://stackoverflow.com/q/24422449/341065>: Since log4cplus 1.1.0-RC10 you can specify locale to be imbued into |std::filestream| used by file appenders. See FileAppender documentation <http://log4cplus.sourceforge.net/docs/html/classlog4cplus_1_1FileAppender.html>, especially the |Locale| property. In your case, try to imbue it with |en_US.UTF-8|. -- VZ |
From: Manuj G. <ma...@hc...> - 2014-06-26 04:58:54
|
I have been handed a code which uses log4cplus as the logger application. How can I generate a UTF8 logging file for it?. The logfile being created by log4cplus is in ASCII format at the moment. I have tried the follow Setting the file encoding of the log file by following instructions at Change File Encoding to utf-8 via vim in a script<http://stackoverflow.com/questions/2311750/change-file-encoding-to-utf-8-via-vim-in-a-script> vi dataLog.txt :set bomb :set fileencoding=utf-8 :wq I have also tried changing the .properties file log4cplus.logger.dl=TRACE,DATA log4cplus.appender.DATA=log4cplus::RollingFileAppender log4cplus.appender.DATA.Locale=en-US log4cplus.appender.DATA.File=/usr/vm/log/data/dataLog.txt log4cplus.appender.DATA.MaxFileSize=5000KB log4cplus.appender.DATA.MaxBackupIndex=5 log4cplus.appender.DATA.layout=log4cplus::PatternLayout log4cplus.appender.DATA.layout.ConversionPattern=%D{%d/%b/%y %H:%M:%S.%q} %-9c %-5p %m%n I am not sure on the exact version of log4cplus however a locate resulted in the following /usr/lib/liblog4cplus-1.0.so.4 /usr/lib/liblog4cplus-1.0.so.4.0.0 /usr/lib/liblog4cplus-1.0.so.4.0.0_load /usr/lib/liblog4cplus.so Manuj ::DISCLAIMER:: ---------------------------------------------------------------------------------------------------------------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects. ---------------------------------------------------------------------------------------------------------------------------------------------------- |
From: Václav Z. <vha...@gm...> - 2014-06-12 09:28:56
|
Hi. I have released log4cplus 1.2.0-RC2. It contains only a small amount of changes relative to the previous 1.2.0-RC1 release: - Fixed bug #298. -- int to pointer cast error on Xcode 5.1. - Updated `android/android.toolchain.cmake`. - Documented issue and work-around for Android's emutls issue. - Do not set SOVERSION and VERSION properties for CMake based Android builds. -- VZ |
From: Václav Z. <vha...@gm...> - 2014-05-10 06:09:49
|
On 8.5.2014 21:45, Ciummo, Lawrence wrote: > I've got a properties file for my logger that has the following in it: > > > > log4cplus.logger.memory=TRACE > > ### next two lines commented out > > #log4cplus.appender.memory.layout=log4cplus::PatternLayout > > #log4cplus.appender.memory.layout.ConversionPattern=%d{%m/%d/%y > %H:%M:%S} [%t] > > > > I want to use it solely to change the log level when the logger is > created -- the logger already has a rolling file appender attached at > startup. > > > > When the file is present -- I lose all logging -- it appears (I'm > guessing) that there are no more appenders. > > > > Here's the code for processing the properties file (called > memory.properties). Note the log level DOES appear to change > properly, no logs are no longer getting written. > > > > Thanks > > lc > > > > // Override logger properties with _config_ file > > *struct*statbuffer; > > *if*(0 == *stat*(/logname/.c_str(), &buffer)) > > { > > ostringstreampropFile; > > propFile << /logger_name/<< ".properties"; > > > log4cplus::PropertyConfigurator::*doConfigure*(propFile.str()); > > log4cplus::LogLevellevel = __mem_log.*getLogLevel*(); > > stringlev = > log4cplus::*getLogLevelManager*().*toString*(level); > > ostringstreammsg; > > msg << "Log level set from memory.properties file to "<< lev; > > cerr << msg.str() << *endl*; > > __mem_log.*forcedLog*(log4cplus::TRACE_LOG_LEVEL, > msg.str()); // <<< never see this even at TRACE level > > } > The |doConfigure()| wipes out the existing configuration. You can change log level by manipulation the logger in code yourself. -- VZ |
From: Ciummo, L. <Law...@em...> - 2014-05-08 19:45:57
|
I've got a properties file for my logger that has the following in it: log4cplus.logger.memory=TRACE ### next two lines commented out #log4cplus.appender.memory.layout=log4cplus::PatternLayout #log4cplus.appender.memory.layout.ConversionPattern=%d{%m/%d/%y %H:%M:%S} [%t] I want to use it solely to change the log level when the logger is created - the logger already has a rolling file appender attached at startup. When the file is present - I lose all logging - it appears (I'm guessing) that there are no more appenders. Here's the code for processing the properties file (called memory.properties). Note the log level DOES appear to change properly, no logs are no longer getting written. Thanks lc // Override logger properties with config file struct stat buffer; if (0 == stat(logname.c_str(), &buffer)) { ostringstream propFile; propFile << logger_name << ".properties"; log4cplus::PropertyConfigurator::doConfigure(propFile.str()); log4cplus::LogLevel level = __mem_log.getLogLevel(); string lev = log4cplus::getLogLevelManager().toString(level); ostringstream msg; msg << "Log level set from memory.properties file to " << lev; cerr << msg.str() << endl; __mem_log.forcedLog(log4cplus::TRACE_LOG_LEVEL, msg.str()); // <<< never see this even at TRACE level } From: Ciummo, Lawrence Sent: Tuesday, April 08, 2014 2:34 PM To: Log...@li... Subject: Minimixing open files I'm using many loggers (up to 1000) in my system and want to minimize the number of open files. If I use an appender with a log level range filter (say on a rolling file appender), will the file be opened if there are never any logging events that don't trigger the filter? Thanks Larry |
From: Václav Z. <vha...@gm...> - 2014-05-04 06:11:09
|
On 15.8.2013 07:09, Nikita Manovich wrote: > Hi, > > I will look at the problem this week. Probably I will find a solution > and send a patch if it is necessary. Ping. :) This has cropped up again. This time on G+: https://plus.google.com/106712358057058222185/posts/6juUApU1fGa > > > 2013/8/14 Václav Zeman <vha...@gm... <mailto:vha...@gm...>> > > On 14 August 2013 11:58, Vladimir "Equidamoid" Shapranov wrote: > > It seems that the error is caused by -fdata-sections flag set by > > android.toolchain.cmake (line 930). > > I don't actually understand why that flag is needed there but addng > > > > if (ANDROID) > > > > add_definitions(-fno-data-sections) > > > > endif(ANDROID) > > > > > > to log4cplus/src/CMakeLists.txt fixes the issue. > I am glad that you found a work around for this issue. > > I have updated the android.toolchain.cmake file from the OpenCV > repository at > <http://code.opencv.org/projects/opencv/repository/revisions/master/changes/platforms/android/android.toolchain.cmake>. > However the updated file still contains the offending -fdata-sections > flag. I think that we (I actually mean you :) should do two things: > > 1. document the issue and your workaround in README; > 2. complain to Google (fill a bug report) that their NDK > compiler/toolchain does not properly support thread local storage. > > > > > 13.08.2013 21:35 , Václav Zeman пишет: > > > > On 08/12/2013 07:13 PM, Vladimir "Equidamoid" Shapranov wrote: > > > > Hello, > > > > I'm trying to build log4cplus for android using cmake (added > > 'add_subdirectory(path/to/the/source)' to my main CMakeLists.txt). > > The build crashes with the following error: > > [ 48%] Building CXX object > > jni/lib/log4cplus-1.1.1/src/CMakeFiles/log4cplus.dir/global-init.cxx.o > > jni/lib/log4cplus-1.1.1/src/global-init.cxx:268:46: error: > > log4cplus::internal::__emutls_t._ZN9log4cplus8internal3ptdE causes a > > section type conflict with log4cplus::internal::ptd > > jni/lib/log4cplus-1.1.1/src/global-init.cxx:268:46: note: > > 'log4cplus::internal::ptd' was declared here > > > > Is this a bug or I'm doing something wrong? > > > > This looks like a deficiency in the Android tool chain. The only > problem > > with log4cplus is probably that its CMake scripts do not detect > that the > > tool chain is lacking this feature. > > > > I am adding Nikita Manovich to CC because he is the one who has > > contributed the Android port patches. |
From: Václav Z. <vha...@gm...> - 2014-04-30 08:04:20
|
2014-04-29 15:02 GMT+02:00 DinoStray: My English is so poor,I hope that won't trouble you. > > When I write to the log file like > LOG4CPLUS_DEBUG(debuggerLog, "析构CDebugger"); > It works well,because the log file Character set is ASCII. > But if I write to the log file like > LOG4CPLUS_DEBUG(debuggerLog, L"析构CDebugger"); > the log file won't log any more. > How could I set the log file Character set as UTF 16?the default is ASCII. > The sources contain docs/unicode.txt. There it is shown what you can do with this, one possible way of doing this. Also, please, try to search the mailing list archives for more information regarding this. -- VZ |
From: vvv j. <vv...@ya...> - 2014-04-29 18:19:00
|
Hi Check the Unicode Text Logging in the log4cplus form which I asked in June 2012. It is similar to your question. Václav Zeman explained clearly about logging unicode text. Let me know if you still have any doubts. Regards J. Viswanath On Tuesday, 29 April 2014 6:32 PM, DinoStray <Din...@ye...> wrote: My English is so poor,I hope that won't trouble you. When I write to the log file like LOG4CPLUS_DEBUG(debuggerLog, "析构CDebugger"); It works well,because the log file Character set is ASCII. But if I write to the log file like LOG4CPLUS_DEBUG(debuggerLog, L"析构CDebugger"); the log file won't log any more. How could I set the log file Character set as UTF 16?the default is ASCII. 2014-04-29 ________________________________ 久利之事勿为,众争之地勿往;勿以小恶弃人大美,勿以小怨忘人大恩;说人之短,乃护己之短,夸己之长,乃忌人之长;利可共而不可独,谋可寡而不可众;天下古今之庸人,皆以一惰字致败,天下古今之才人,皆以一傲字致败;凡成大事,以识为主,以才为辅,人谋居半,天意居半。 ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available. Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ Log4cplus-devel mailing list Log...@li... https://lists.sourceforge.net/lists/listinfo/log4cplus-devel |
From: DinoStray<Din...@ye...> - 2014-04-29 13:02:32
|
My English is so poor,I hope that won't trouble you. When I write to the log file like LOG4CPLUS_DEBUG(debuggerLog, "析构CDebugger"); It works well,because the log file Character set is ASCII. But if I write to the log file like LOG4CPLUS_DEBUG(debuggerLog, L"析构CDebugger"); the log file won't log any more. How could I set the log file Character set as UTF 16?the default is ASCII. 2014-04-29 久利之事勿为,众争之地勿往;勿以小恶弃人大美,勿以小怨忘人大恩;说人之短,乃护己之短,夸己之长,乃忌人之长;利可共而不可独,谋可寡而不可众;天下古今之庸人,皆以一惰字致败,天下古今之才人,皆以一傲字致败;凡成大事,以识为主,以才为辅,人谋居半,天意居半。 |
From: Václav Z. <vha...@gm...> - 2014-04-09 07:39:58
|
On 8 April 2014 20:33, Ciummo, Lawrence wrote: > I’m using many loggers (up to 1000) in my system and want to minimize the > number of open files. If I use an appender with a log level range filter > (say on a rolling file appender), will the file be opened if there are never > any logging events that don’t trigger the filter? There will be as many opened files as there are (rolling) file appender instances. It is unusual to open one appender per one logger. -- VZ |
From: Ciummo, L. <Law...@em...> - 2014-04-08 18:33:57
|
I'm using many loggers (up to 1000) in my system and want to minimize the number of open files. If I use an appender with a log level range filter (say on a rolling file appender), will the file be opened if there are never any logging events that don't trigger the filter? Thanks Larry |
From: Václav Z. <vha...@gm...> - 2014-04-02 18:25:38
|
On 04/02/2014 07:45 PM, Ciummo, Lawrence wrote: > I’ve got an application that does a lot of disk IO set up to use about > 1000 different log files. Normally, the log level is set to DEBUG level > so that there is almost no logging at runtime (maybe 2-3 logs over a 4 > hour period). I see about a 5% hit to overall performance (measured by > IOPS to the disks) when logging code in my build (ie it’s 5% faster > without any log4cplus code at all ). > > > > Is there any explanation for this? > > > > Does a call like… > > LOG4CPLUS_TRACE(_drive_logger, "Entering... debug="<< debug); > > > > Cause any processing with log level set to DEBUG? Is the string > constructed if the logging level set to DEBUG. The macro is defined in `log4cplus/loggingmacros.h`. You can see there for yourself; look for `LOG4CPLUS_MACRO_BODY`. The string should be built only if you are actually going to log, there is log level check before the string formatting is done. The log level check obviously has some small overhead as well. I cannot tell if 5 % of your IOPS is within limits of expectation or not. Try running your application with and without log4cplus logging under a profiler. -- VZ |
From: Ciummo, L. <Law...@em...> - 2014-04-02 17:46:15
|
I've got an application that does a lot of disk IO set up to use about 1000 different log files. Normally, the log level is set to DEBUG level so that there is almost no logging at runtime (maybe 2-3 logs over a 4 hour period). I see about a 5% hit to overall performance (measured by IOPS to the disks) when logging code in my build (ie it's 5% faster without any log4cplus code at all ). Is there any explanation for this? Does a call like... LOG4CPLUS_TRACE(_drive_logger, "Entering... debug=" << debug); Cause any processing with log level set to DEBUG? Is the string constructed if the logging level set to DEBUG. Thanks Larry |