log4cplus-devel Mailing List for log4cplus (Page 7)
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 Z. <vha...@gm...> - 2014-01-11 23:09:57
|
Hi. I have decided to migrate log4cplus source code hosting to Git on Github. The repository is at <https://github.com/log4cplus/log4cplus>. Bug tracker, etc., stays on SourceForge. Why? Bazaar development is pretty much dead and SourceForge is not supporting it any more. Log4cplus can survive a bit longer with Bazaar on Launchpad but there are other things to consider: - Git seems to have won the DVCS wars, at least for next few years. Migrations to Git seem to be happening quite a lot while migrations from Git seem to be rare. - Using main stream DVCS might make log4cplus hacking more attractive and/or accessible to drive by contributors. According to some blogs and posts on mailing lists, some people consider working with Bazaar hard and Bazaar lacking some features they know from Git and they consider having to learn yet another DVCS to contribute few small patches too much. - It seems that Emacs development is going to move to Git soon (or is even in the process of moving now). This is migration from Bazaar to Git. That such important OSS project has decided to move from Bazaar to Git has made me thinking about log4cplus hosting and Bazaar, again. - I have recently been using Git through Emacs and magit and it was not that bad experience. (I still hate the Git CLI.) - I have shortly entertained the idea of moving to Mercurial but I have quickly dismissed it. It seems it would just postpone move to Git only for few months or years at best. Again, Git seems to have won the DVCS wars. - I would like to use the Travis CI integration that Github offers, without having to run a mirroring script on my home box. -- VZ |
From: yin k. <lai...@gm...> - 2014-01-03 03:49:38
|
thank you very much for doing this 2014/1/1 Václav Zeman <vha...@gm...> > On 12/31/2013 04:30 AM, yin kaka wrote: > > Hi, all. > > I try to porting log4cplus to ios platform , I have used the ios > > cmake to generate the xcode project , but there is some errors when > > compile it. > > ios-cmake :https://code.google.com/p/ios-cmake/downloads/list > > > > Q1: in this platform , I confused that the two headers both missing , > > > > #ifdef LOG4CPLUS_HAVE_SYS_TYPES_H > > > > #include <sys/types.h> > > > > #endif > > > > #ifdef LOG4CPLUS_HAVE_SYS_STAT_H > > > > #include <sys/stat.h> > > > > #endif > > > > Q2: in this platform , threads are not found > > > > find_package (Threads) > > > > this returns Threads_NOTFOUND, > > > > I think if there need some special confige to make this runnable in ios > > platform, can some one else use log4cplus in ios platform , pelease help > > me ? > > I have released version 1.1.3-RC1 that contains some portability fixes, > some also for iOS. I have no way of testing that on iOS right now. > Please try it. > > -- > VZ > > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Log4cplus-devel mailing list > Log...@li... > https://lists.sourceforge.net/lists/listinfo/log4cplus-devel > > |
From: Václav Z. <vha...@gm...> - 2013-12-31 22:03:58
|
On 12/31/2013 04:30 AM, yin kaka wrote: > Hi, all. > I try to porting log4cplus to ios platform , I have used the ios > cmake to generate the xcode project , but there is some errors when > compile it. > ios-cmake :https://code.google.com/p/ios-cmake/downloads/list > > Q1: in this platform , I confused that the two headers both missing , > > #ifdef LOG4CPLUS_HAVE_SYS_TYPES_H > > #include <sys/types.h> > > #endif > > #ifdef LOG4CPLUS_HAVE_SYS_STAT_H > > #include <sys/stat.h> > > #endif > > Q2: in this platform , threads are not found > > find_package (Threads) > > this returns Threads_NOTFOUND, > > I think if there need some special confige to make this runnable in ios > platform, can some one else use log4cplus in ios platform , pelease help > me ? I have released version 1.1.3-RC1 that contains some portability fixes, some also for iOS. I have no way of testing that on iOS right now. Please try it. -- VZ |
From: Václav Z. <vha...@gm...> - 2013-12-31 19:37:54
|
Hi. I have released log4cplus 1.1.3-RC1. There are mainly portability fixes related to MinGW, iOS, Android and CMake: - Added --enable-symbols-visibility-options to configure script to allow turning off use of compiler and platform specific symbols visibility options. - Added ENABLE_SYMBOLS_VISIBILITY setting for CMake build system to the same effect as above. - Disabled LOG4CPLUS_INLINES_ARE_EXPORTED to fix linking issues on MinGW GCC 4.8.x. - Added LOG4CPLUS_BUILD_LOGGINGSERVER setting for CMake build system to allow disabling loggingserver. (Maxym) - Allow users overriding LOG4CPLUS_MACRO_FUNCTION. - Improved Android platform detection in CMake build system. (Maxym) - Allow overriding ConfigureChecks.cmake with user supplied file to help with issues on iOS platform. - Updated android.toolchain.cmake from OpenCV project. - Added iOS support to CMake build system. (Maxym) - Fixed compilation issue of single-threaded builds on Windows. - Improved CMake build system's default installation directories for GNU platforms by using GNUInstallDirs module. -- VZ |
From: yin k. <lai...@gm...> - 2013-12-31 03:31:02
|
Hi, all. I try to porting log4cplus to ios platform , I have used the ios cmake to generate the xcode project , but there is some errors when compile it. ios-cmake :https://code.google.com/p/ios-cmake/downloads/list Q1: in this platform , I confused that the two headers both missing , #ifdef LOG4CPLUS_HAVE_SYS_TYPES_H #include <sys/types.h> #endif #ifdef LOG4CPLUS_HAVE_SYS_STAT_H #include <sys/stat.h> #endif Q2: in this platform , threads are not found find_package (Threads) this returns Threads_NOTFOUND, I think if there need some special confige to make this runnable in ios platform, can some one else use log4cplus in ios platform , pelease help me ? |
From: Václav Z. <vha...@gm...> - 2013-12-30 08:11:41
|
On 12/29/2013 05:38 PM, Václav Zeman wrote: > On 12/29/2013 02:38 PM, Christian Ehrlicher wrote: >> Hi, >> >> I\'m trying to replace log4cxx with log4cplus in my projects >> but got a small problem: >> >> would it be possible to install the log4cplus library into >> lib64 on a 64 bit linux system? It should be doable by using >> include(\"GNUInstallDirs\") >> and the use the LIBDIR variable for the installation >> directory, see also >> http://cmake.3232098.n2.nabble.com/How-can-I-place-a-64bit-library-build-into-usr-lib64-td7585057.html >> This file is available in cmake 2.8.x and up iirc. > I can try that but it would probably help if you could provide a patch > to that effect. I have committed patches to both 1.1.x and trunk branches. Please test changes. -- VZ |
From: yin k. <lai...@gm...> - 2013-12-20 02:02:20
|
I have integreted the log4cplus in my android application through use it as a static library. Because I am a newbie in android platform, i have some problems. In win32 platform , the fileappender will put the log file in the exe directory ,but in the android virtual device , I can't find the log file. In win32 project ,the consoleappender will output the log to the console ,but in the andriod application, the log didn't output in the logcat window, it's puzzled me a lot . Can some one get into the same troble before? please help me. |
From: Václav Z. <vha...@gm...> - 2013-12-19 14:19:27
|
On 19 December 2013 14:56, Vladimir "Equidamoid" Shapranov <equ...@gm...> wrote: > Hi laiyierjiangsu, > > I'm using log4cplus in crossplatform android/ios app. > The first option is to write your own appender. The simpliest one > contains just one overridded method: > > void LogcatAppender::append(const > log4cplus::spi::InternalLoggingEvent &event){ > > log4cplus::tstring txt = formatEvent(event); > > __android_log_write(ANDROID_LOG_WARN, "yourappname", txt.c_str()); > > } > __android_log_write is defined in android/log.h header. > > Another way is to use SocketAppender class to send logs over wifi > connection (I use my laptop as a receiver) and use loggingserver app to > receive and read them. > > Also there is a possibility to redirect app's stdout to logcat ( > http://stackoverflow.com/questions/10531050/redirect-stdout-to-logcat-in-android-ndk > ) but I haven't tried it. Appender based on this logging API (http://mobilepearls.com/labs/native-android-api/#logging) would be an awesome addition to log4cplus. > > 19.12.2013 17:15 , laiyierjiangsu пишет: >> ------------------------------------------------------------------------ >> >> *[bugs:#290] <http://sourceforge.net/p/log4cplus/bugs/290/> How to use >> log4cplus in android device* >> >> *Status:* open >> *Labels:* android >> *Created:* Thu Dec 19, 2013 01:15 PM UTC by laiyierjiangsu >> *Last Updated:* Thu Dec 19, 2013 01:15 PM UTC >> *Owner:* Václav Zeman >> >> I have integreted the log4cplus in my android application. Because I >> am a newbie in android platform, i have some problems. >> >> In win32 platform , the fileappender will put the log file in the exe >> directory ,but in the android virtual device , I can't find the log file. >> >> In win32 project ,the consoleappender will output the log to the >> console ,but in the andriod application, the log didn't output in the >> logcat window, it's puzzled me a lot . >> >> Can some one get into the same troble before? please help me. -- VZ |
From: Vladimir \Equidamoid\ S. <equ...@gm...> - 2013-12-19 13:56:18
|
Hi laiyierjiangsu, I'm using log4cplus in crossplatform android/ios app. The first option is to write your own appender. The simpliest one contains just one overridded method: > void LogcatAppender::append(const log4cplus::spi::InternalLoggingEvent &event){ > log4cplus::tstring txt = formatEvent(event); > __android_log_write(ANDROID_LOG_WARN, "yourappname", txt.c_str()); > } __android_log_write is defined in android/log.h header. Another way is to use SocketAppender class to send logs over wifi connection (I use my laptop as a receiver) and use loggingserver app to receive and read them. Also there is a possibility to redirect app's stdout to logcat ( http://stackoverflow.com/questions/10531050/redirect-stdout-to-logcat-in-android-ndk ) but I haven't tried it. 19.12.2013 17:15 , laiyierjiangsu пишет: > ------------------------------------------------------------------------ > > *[bugs:#290] <http://sourceforge.net/p/log4cplus/bugs/290/> How to use > log4cplus in android device* > > *Status:* open > *Labels:* android > *Created:* Thu Dec 19, 2013 01:15 PM UTC by laiyierjiangsu > *Last Updated:* Thu Dec 19, 2013 01:15 PM UTC > *Owner:* Václav Zeman > > I have integreted the log4cplus in my android application. Because I > am a newbie in android platform, i have some problems. > > In win32 platform , the fileappender will put the log file in the exe > directory ,but in the android virtual device , I can't find the log file. > > In win32 project ,the consoleappender will output the log to the > console ,but in the andriod application, the log didn't output in the > logcat window, it's puzzled me a lot . > > Can some one get into the same troble before? please help me. > > ------------------------------------------------------------------------ > > Sent from sourceforge.net because > log...@li... is subscribed to > https://sourceforge.net/p/log4cplus/bugs/ > > To unsubscribe from further messages, a project admin can change > settings at https://sourceforge.net/p/log4cplus/admin/bugs/options. > Or, if this is a mailing list, you can unsubscribe from the mailing list. > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > > > _______________________________________________ > Log4cplus-devel mailing list > Log...@li... > https://lists.sourceforge.net/lists/listinfo/log4cplus-devel -- Best regards, Vladimir |
From: Václav Z. <vha...@gm...> - 2013-12-17 14:14:50
|
On 17 December 2013 15:08, Vadim Kuras <vad...@gm...> wrote: > On Tue, Dec 17, 2013 at 3:52 PM, Václav Zeman <vha...@gm...> wrote: >> >> On 17 December 2013 14:15, Vadim Kuras wrote: >> > Hi, >> > >> > When multiple processes write the the log file, the backups are not >> > created/deleted. >> > >> > Is that a known issue? >> I am assuming you are using Windows. If you are using Windows then >> yes, it is a known issue. It is caused by Windows file >> sharing/locking. > It that going to be fixed one day? I have some part of the fix done in the form of a custom file stream that opens the file with FILE_SHARE_DELETE sharing flag set, which should allow deleting and renaming of open files. It needs some more testing and integration into the actual log4cplus code base and FileAppender code. I am attaching the source just in case anybody wants to beat me to it. -- VZ |
From: Václav Z. <vha...@gm...> - 2013-12-03 06:02:28
|
On 12/02/2013 12:26 AM, CanisMajorWuff wrote: > Hi, > > Is it possible to compile the library to static archive and get static > linking with it. I use cmake to build the project. There is BUILD_SHARED_LIBS that is set to ON by default. You would have to unset it to get static libraries out of the CMake build. -- VZ |
From: CanisMajorWuff <can...@gm...> - 2013-12-01 23:26:53
|
Hi, Is it possible to compile the library to static archive and get static linking with it. I use cmake to build the project. Thanks. |
From: Václav Z. <vha...@gm...> - 2013-11-27 23:35:24
|
On 11/27/2013 04:43 PM, Ciummo, Lawrence wrote: > Hi: Can we get a pattern option similar to %M that causes just the > function name to be listed instead of the full signature function > name and parameter list. It appears that log4cplus uses the > __pretty_function__ - in some cases the __function__ short name would > be preferable. Please try the attached patch. It will allow you to override the LOG4CPLUS_MACRO_FUNCTION() macro by your own variant. -- VZ |
From: Ciummo, L. <Law...@em...> - 2013-11-27 15:44:23
|
Hi: Can we get a pattern option similar to %M that causes just the function name to be listed instead of the full signature function name and parameter list. It appears that log4cplus uses the __pretty_function__ - in some cases the __function__ short name would be preferable. Thanks Larry |
From: Václav Z. <vha...@gm...> - 2013-11-25 12:42:35
|
On 25 November 2013 13:15, Polhodzik Peter (ext) wrote: > Hi, > > > > Is there a special reason that log4cplus is fine with different GNU GPL > licensed files in the Apache licensed OS? On Apache site I read they are > incompatible. > > > > GNU GPL v3 with exceptions, for example: > > > > \log4cplus-1.1.2\m4\ax_append_flag.m4 > > \log4cplus-1.1.2\m4\ax_compiler_vendor.m4 > > \log4cplus-1.1.2\m4\ax_pthread.m4 > > \log4cplus-1.1.2\m4\ax_cflags_warn_all.m4 > > \log4cplus-1.1.2\m4\ax_cflags_sun_option.m4 > > \log4cplus-1.1.2\m4\ax_type_socklen_t.m4 > > \log4cplus-1.1.2\m4\ax_cflags_gcc_option.m4 > > \log4cplus-1.1.2\m4\ax_cflags_aix_option.m4 IANAL, so I am not sure if and what problem is there. The files mentioned above are distributed with the log4cplus source so I think the GPL side of things is covered and adhered to. The macros contain an exception that removes the GPL coverage from the resulting configure script. This email thread seems to support my view of the licensing issue: http://lists.gnu.org/archive/html/automake/2009-03/msg00031.html I am not aware of any part of log4cplus binaries or headers that would be covered by GPL, thus the resulting binary is not covered by GPL, only by ASL 2.0 and by 2-BSD. Whether or not ASL 2.0 is anyhow violated, I cannot tell. However I do not think it is the case. You should probably ask a real IP lawyer about this if you really need an authoritative answer. -- VZ |
From: Polhodzik P. (ext) <Pet...@ev...> - 2013-11-25 12:17:42
|
All right, I take the whole as ASL 2.0 Thank you VZ Peter -----Original Message----- From: Václav Zeman [mailto:vha...@gm...] Sent: Monday, November 25, 2013 12:52 PM To: Polhodzik Peter (ext) Cc: log...@li... Subject: Re: [Log4cplus-devel] Dual or multiple licensed? On 25 November 2013 12:14, Polhodzik Peter (ext) wrote: > Hi, > > > > Is log4cplus > > · dual licensed à BSD 2 clause or Apache 2.0, or > > · multiple licensed à both BSD 2 clause and Apache 2.0? This one, I think. There are source files licensed under the ASL 2.0 and other source files licensed under the two clause BSD license. AFAIK, IANAL, if you treat the whole as ASL 2.0, everything should be fine. -- VZ |
From: Polhodzik P. (ext) <Pet...@ev...> - 2013-11-25 12:15:28
|
Hi, Is there a special reason that log4cplus is fine with different GNU GPL licensed files in the Apache licensed OS? On Apache site<http://www.apache.org/legal/resolved.html> I read they are incompatible. GNU GPL v3 with exceptions, for example: \log4cplus-1.1.2\m4\ax_append_flag.m4 \log4cplus-1.1.2\m4\ax_compiler_vendor.m4 \log4cplus-1.1.2\m4\ax_pthread.m4 \log4cplus-1.1.2\m4\ax_cflags_warn_all.m4 \log4cplus-1.1.2\m4\ax_cflags_sun_option.m4 \log4cplus-1.1.2\m4\ax_type_socklen_t.m4 \log4cplus-1.1.2\m4\ax_cflags_gcc_option.m4 \log4cplus-1.1.2\m4\ax_cflags_aix_option.m4 Thank you, Peter |
From: Václav Z. <vha...@gm...> - 2013-11-25 11:52:34
|
On 25 November 2013 12:14, Polhodzik Peter (ext) wrote: > Hi, > > > > Is log4cplus > > · dual licensed à BSD 2 clause or Apache 2.0, or > > · multiple licensed à both BSD 2 clause and Apache 2.0? This one, I think. There are source files licensed under the ASL 2.0 and other source files licensed under the two clause BSD license. AFAIK, IANAL, if you treat the whole as ASL 2.0, everything should be fine. -- VZ |
From: Polhodzik P. (ext) <Pet...@ev...> - 2013-11-25 11:40:26
|
Hi, Is log4cplus · dual licensed --> BSD 2 clause or Apache 2.0, or · multiple licensed --> both BSD 2 clause and Apache 2.0? Thank you, Üdvözlettel / Best Regards, Péter POLHODZIK |
From: qwerty m. <qwe...@gm...> - 2013-11-25 08:08:48
|
Team Thanks for your answer. I do have some more questions regarding cleaning up log resources. To say more precise, ours is a sync product. So in server side both backup and restore will happen in parallel. Say you register to an account 'A'. This account 'A' has three devices D1, D2 and D3. Whenever files modified from any device say D1, server initiates restore to the other devices D2 and D3. Coming to the threads in server side. We do have 3 threads for each device for upload and 2 threads for handling download in server side. Initially we planned to add log for each device. But it might lead to huge number of files considering if a customer has 50 accounts registered having n number of devices. We have a static map in server side with combined key (A+D1)(Account+Device). Thread object will be saved corresponding to this key value. The thread will get completed only after 15 min of idle time. If during the idle time, any sync actions triggered for that account, it will either use the already created thread or will create new thread and proceed with that. So we planned to have single log for each account for both upload and download process for all devices under the same. Since threads are running at device level and logging happens at account level, I have to make sure I close appender object associated with that account so I as to avoid handle leak issues. Is there any other better way of handling clean up case ? Regards, Prabu On Wed, Nov 20, 2013 at 9:31 PM, Václav Zeman <vha...@gm...> wrote: > On 20 November 2013 12:34, qwerty mobile wrote: > > Team, > > > > I am new to this mailing list. I don't have any prior knowledge on log4j > as > > well. I want to use this log4cplus in our multi threading based larger > > application. > > > > I have some questions for implementing RollingFileAppender in multi > > threading application. > > > > Ours is a small backup application written in C++ having both client and > > server side components. Multiple clients can connect to the server > > simultaneously and send their backup data. I want to add logs for > debugging > > in server side. > > > > This is my idea. I will have separate log file for each backup > processing in > > the server side assuming backup name is unique here. Three threads will > be > > involved in the server side for processing every backup received from the > > client side. > > > > Can I share the Logger object between the threads processing single > backup > > in the server side ?. > > Yes, you can do that. Assuming log4cplus has been configured as thread > aware (--enable-threads configure switch; Windows builds are always > thread by default), appenders are thread safe. > > > I had planned to achieve this by using a static map > > having backup name as key and Logger object as value here. And then from > > each thread, I will get this logger object from the map and then call the > > logging macros as below, > > > > LOG4CPLUS_XX(LoggerObj, LogMessage); # This happens with the same logger > > object from multiple threads. > > This should be fine. > > > > > Do I have to use any mutex if I share the same logger object between > > different threads processing same backup ?. > > No, the appenders manage mutual exclusion between threads internally. > > > > > I have read from some forums that RollingFileAppender does synchronous > write > > operations. Please confirm the same. > > Yes, this is true. > > > > > If you could also point me some examples for my case, it will be very > > helpful. > > > > Thanks in advance, > > Prabu > > -- > VZ > |
From: Ciummo, L. <Law...@em...> - 2013-11-22 17:31:51
|
Hi: When I use %M in an appender pattern, I get very long functions names... 11-22 11:11:42,937.199 [140100012795648] TRACE - Entering... debug=0 [satl_scsi_implementer.cpp virtual SCSI_Command* SATL_SCSI_Implementer::create_command(). Is there a way to get %M to just put in the function name from __FUNCTION__ vs using the output from __PRETTY_FUNCTION__, which seems to add the full signature of a function. This is x86 gnu. Thanks Larry C |
From: Václav Z. <vha...@gm...> - 2013-11-20 16:02:05
|
On 20 November 2013 12:34, qwerty mobile wrote: > Team, > > I am new to this mailing list. I don't have any prior knowledge on log4j as > well. I want to use this log4cplus in our multi threading based larger > application. > > I have some questions for implementing RollingFileAppender in multi > threading application. > > Ours is a small backup application written in C++ having both client and > server side components. Multiple clients can connect to the server > simultaneously and send their backup data. I want to add logs for debugging > in server side. > > This is my idea. I will have separate log file for each backup processing in > the server side assuming backup name is unique here. Three threads will be > involved in the server side for processing every backup received from the > client side. > > Can I share the Logger object between the threads processing single backup > in the server side ?. Yes, you can do that. Assuming log4cplus has been configured as thread aware (--enable-threads configure switch; Windows builds are always thread by default), appenders are thread safe. > I had planned to achieve this by using a static map > having backup name as key and Logger object as value here. And then from > each thread, I will get this logger object from the map and then call the > logging macros as below, > > LOG4CPLUS_XX(LoggerObj, LogMessage); # This happens with the same logger > object from multiple threads. This should be fine. > > Do I have to use any mutex if I share the same logger object between > different threads processing same backup ?. No, the appenders manage mutual exclusion between threads internally. > > I have read from some forums that RollingFileAppender does synchronous write > operations. Please confirm the same. Yes, this is true. > > If you could also point me some examples for my case, it will be very > helpful. > > Thanks in advance, > Prabu -- VZ |
From: qwerty m. <qwe...@gm...> - 2013-11-20 11:34:52
|
Team, I am new to this mailing list. I don't have any prior knowledge on log4j as well. I want to use this log4cplus in our multi threading based larger application. I have some questions for implementing RollingFileAppender in multi threading application. Ours is a small backup application written in C++ having both client and server side components. Multiple clients can connect to the server simultaneously and send their backup data. I want to add logs for debugging in server side. This is my idea. I will have separate log file for each backup processing in the server side assuming backup name is unique here. Three threads will be involved in the server side for processing every backup received from the client side. Can I share the Logger object between the threads processing single backup in the server side ?. I had planned to achieve this by using a static map having backup name as key and Logger object as value here. And then from each thread, I will get this logger object from the map and then call the logging macros as below, LOG4CPLUS_XX(LoggerObj, LogMessage); # This happens with the same logger object from multiple threads. Do I have to use any mutex if I share the same logger object between different threads processing same backup ?. I have read from some forums that RollingFileAppender does synchronous write operations. Please confirm the same. If you could also point me some examples for my case, it will be very helpful. Thanks in advance, Prabu |
From: Václav Z. <vha...@gm...> - 2013-11-02 22:23:00
|
On 11/01/2013 02:26 PM, Zhen Ren wrote: > Hi all, > After learning log4cplus for a period of time, I want to do something > for this project. > > I read *TODO* file in src directory, and find there is a list of stuff > to do. > For me,I think I can try *Installer for Debian* And *Colored output for > per log level*. > So,does anyone has begun to do this and any advice? Start with anything that you think is worth improving. A spec file for Debian would be nice. Notice that there is already one spec file for Fedora (log4cplus.spec). -- VZ |
From: Zhen R. <ren...@gm...> - 2013-11-01 13:26:26
|
Hi all, After learning log4cplus for a period of time, I want to do something for this project. I read *TODO* file in src directory, and find there is a list of stuff to do. For me,I think I can try *Installer for Debian* And *Colored output for per log level*. So,does anyone has begun to do this and any advice? Thanks. -- Ren Zhen |