Re: Comments on HierarchyEventListener implementation details and other junk

2011-09-09 Thread Curt Arnold
On Sep 9, 2011, at 1:34 PM, Rhys Ulerich wrote: For an MPI-based application where I needed to broadcast a configuration from one MPI rank to all others, I have noticed the following gotchas about log4cxx's trunk innards. Not questions so much as requests for comments or to help some other

Re: How to get Local Time

2011-08-29 Thread Curt Arnold
log4c_category_log isn't a method in Apache log4cxx. I believe that you are using a different product and should ask your question on a forum for log4c users. On Aug 22, 2011, at 7:03 AM, pavan_734 wrote: log4c_category_log() is giving time in UTC even though I have set time zone to

Re: RollingFileAppender file permission problem

2011-05-15 Thread Curt Arnold
On May 14, 2011, at 9:38 PM, Alex Huang (Gorilla) wrote: I should add that the very first log file is created with the non-root user as the owner and group and log messages are successfully written to it. It is the rolling over of the log file that has a permission problem. Alex I'm

Re: Custom Appender

2011-03-23 Thread Curt Arnold
First. it would be best for you to define your custom appenders in a namespace other than log4cxx. Second, you declare a constructor, destructor and close method for VirtualAppender, but you did not provide an implementation. Unless you compiled and linked in a file that looked like:

Re: Static destruction fiasco?

2011-02-28 Thread Curt Arnold
On Feb 27, 2011, at 1:25 PM, Rhys Ulerich wrote: Hi, I've noticed that this little test program segfaults beautifully under 0.10 #include log4cxx/logger.h log4cxx::LoggerPtr logger; int main() { logger = log4cxx::Logger::getLogger(someName);

Re: PropertyConfigurator::configure file encoding

2011-02-02 Thread Curt Arnold
Property files in Java are by definition in ISO-8859-1 which cannot support Chinese characters without using escape characters (see http://download.oracle.com/javase/6/docs/api/java/util/Properties.html). log4cxx follows this convention so that it is compatible with log4j configuration files.

Re: ODBCAppender with sqlite3

2011-01-23 Thread Curt Arnold
I don't have any personal experience with the ODBCAppender at all and can't recall ODBC+SQLite coming up before but I didn't check the archive myself. Doing a quick search, it appears that ODBC support can be provided by several third party software. Likely the configuration strings would

Re: Can't find custom appender

2010-11-19 Thread Curt Arnold
The likely suspect is that your appender is not being added to the registry of known appenders before the configuration is processed. Your appender should have a macro expansion like: IMPLEMENT_LOG4CXX_OBJECT(DailyRollingFileAppender) that contains the registration code. You can set a

Re: get method name of logging caller...

2010-10-18 Thread Curt Arnold
If you are using the LOG4CXX_DEBUG and similar macros and some of the more popular compilers, then you hopefully will get class and method information. If you transliterated java code and are just doing logger.debug(Msg), then that information is not available to you. The performance issue

Re: rollingfileappender.h

2010-09-16 Thread Curt Arnold
log4cxx attempts to reproduce the appender set from log4j and log4j has two different RollingFileAppender classes, org.apache.log4j.RollingFileAppender and org.apache.log4j.rolling.RollingFileAppender. The latter was developed on the abandoned log4j 1.3 development branch, is now included in

Re: simple stringstream appender

2010-08-17 Thread Curt Arnold
STL streams maintain an internal state and would not be safe to use in an appender unless you used external synchronization and precomposed the message so that it was done as one operation. For example, if you did something like: os Hello World; if os was visible from another thread, you

Re: hung for 2 hours when logging

2010-06-12 Thread Curt Arnold
Could it possibly be http://issues.apache.org/jira/browse/LOGCXX-317? If so, there is a patch there that may solve the issue. On Jun 11, 2010, at 11:58 PM, Yue Gao wrote: our server hung for 2 hours today. the log shows 2010-06-11 20:27:56,852 INFO - Saving data, INCREMENTAL,

Re: error while linking with std::basic_string...::basic_string...(...)

2010-06-07 Thread Curt Arnold
The hex codes were intentional since they would give the expected character value even if compiled using a non-ASCII based encoding like EBCDIC. I'll try to pull the constants out into preprocessor macros and do a little #if(__BORLANDC__)

Re: Unable to build with VS2010

2010-05-12 Thread Curt Arnold
On May 12, 2010, at 8:23 AM, Julien Marbach wrote: Cory, I'm having the same probleme here. I have tried to correcte the c2252 errors by moving the declarations at manespace scope in state of class scope but other problems have arised I think my poor knowlege of c++ won't allow me to

Fwd: log4cxx 0.10.1 release plan (Re: link error in release mode with Visual Studio 2008 on log4cxx-user)

2010-05-11 Thread Curt Arnold
Cross posting on log4cxx-user since the question was asked there. Followup discussion should be on log4cxx-dev. Begin forwarded message: From: Curt Arnold carn...@apache.org Date: May 11, 2010 11:38:19 PM CDT To: Log4CXX Dev log4cxx-...@logging.apache.org Subject: log4cxx 0.10.1 release

Re: link error in release mode with Visual Studio 2008

2010-05-10 Thread Curt Arnold
On May 10, 2010, at 4:52 AM, Reynolds, John wrote: As he is new to programming on windows, I suggested ant as it takes the build of log4cxx out of the Visual Studio as what he has built is corrupt in someway. It also enforces a clean build. Better to start in small steps. Build the DLL and

Re: How to build a x64 library on windows with Visual Studio?

2009-12-03 Thread Curt Arnold
I do not believe that you should need to change any code. Been a while since I've tested a Win64 build, but I think the Ant driven VC++ build completed without issue. Don't recall the experience building within Visual Studio. Likely a project file issue. The .vcproj file in the release is

Re: LOG4CXX_DECODE_CHAR Crash on windows

2009-11-17 Thread Curt Arnold
Mismatching run-time libraries is a easy way to manufacture a crash. Basically any time one DLL tries to deallocate some resource allocated by a DLL using a different run time library (and that includes two DLLs that each use /MT since they have the own instances of the run- time

Re: Compilation Error -Log4cxx 0.10.0 on AS3 Redhat Linux (gcc2.96)]

2009-11-15 Thread Curt Arnold
When I checked the archives, it appears that you have reported this before. From log4cxx-user in July 12, 2008 I replied: gcc 2.96 was a prerelease version of gcc 3.x and has an incomplete implementation of the C++ Standard Template Library (see http://gcc.gnu.org/gcc-2.96.html ) . I have

Re: problem with install log4cxx

2009-11-12 Thread Curt Arnold
On Nov 10, 2009, at 4:52 AM, Bajramovic, Ervin wrote: Hi everybody I want to build log4cxx I used the following configuration: ./autogen.sh ./configure CFLAGS=-O2 -s -mms-bitfields -march=i686 CXXFLAGS=-O2 -s -mms-bitfields -march=i686 --with-apr=/usr/local --with-apr- util=/usr/local

Re: multiple lines of output for the same logging event

2009-08-29 Thread Curt Arnold
On Aug 29, 2009, at 1:08 PM, vasile.jures...@sophia.inria.fr wrote: On Saturday 29 August 2009 21:01:37 deepak singh wrote: The reason could be you are initializing the logger multiple times. Can you send the code where you are initializing the logger and make sure that part of code is

Re: this is a bug in the encoding procedure

2009-08-21 Thread Curt Arnold
unicode as the internal charset in log4cxx and I just want the log4cxx to log the messages without any charset convertion. On Fri, Aug 21, 2009 at 12:00 PM, Curt Arnold carn...@apache.org wrote: I'm thinking the constant should be 0x20, not 0x30. The code was an attempt to be able to handle

Re: this is a bug in the encoding procedure

2009-08-20 Thread Curt Arnold
I'm thinking the constant should be 0x20, not 0x30. The code was an attempt to be able to handle non-ASCII platforms like EBCDIC but looks like it was mangled and was done without access to a non-ASCII platform. Was just trying to do enough decoding to get the encoding name to load a

Re: efficiencies of getLogger()

2009-08-18 Thread Curt Arnold
The typical pattern is to use a static logger member in a class which results in getLogger() being called once per class during initialization: foo.h class Foo { statlc log4cxx::LoggerPtr logger; void hello(); }; foo.cpp log4cxx::LoggerPtr Foo::logger(Logger::getLogger(foo)); void

Re: Building with Visual 2005 fails

2009-08-12 Thread Curt Arnold
On Aug 12, 2009, at 1:28 AM, resul sahin wrote: Hello, When I build the log4cxx on Visual 2005 according to instructionshttp://logging.apache.org/log4cxx/building/vstudio.html , I am getting error below; 1-- Build started: Project: apr, Configuration: Debug Win32 --

Re: logString issue...please help

2009-08-11 Thread Curt Arnold
On Aug 11, 2009, at 2:12 PM, ss ak wrote: string logfile = logfile1.log; printf(\n in main () ); log4cxx::FileAppenderPtr fileAppender = new log4cxx::FileAppender(log4cxx::LayoutPtr(new log4cxx ::SimpleLayout ()),log4cxx::helpers::Transcoder::decode(logfile.c_str()),false);

Re: linking errors when trying to use log4cxx as a static library (VC2008)

2009-05-29 Thread Curt Arnold
On May 29, 2009, at 12:09 PM, Gerrit van Doorn wrote: Hi, I compiled log4cxx as a DLL before and it worked perfectly. Now I wanted to use log4cxx (version 0.10.0) as a static library. I've set the Configuration Type to Static Library .lib in the log4cxx properties and I changed the

Re: Programmatic Configuration of XMLSocketAppender

2009-05-28 Thread Curt Arnold
Nothing I've seen in the log4cxx codebase suggests that XMLSocketAppender accepts a layout specification. The log4cxx 0.10.0 code uses an XMLLayout in its implementation, but it is private. My guess is that your attempt at specifying a layout is getting ignored. If you want to write

Re: Receiving LoggingEvent From SocketAppender (log4cxx 0.10.0)

2009-05-28 Thread Curt Arnold
On May 28, 2009, at 12:57 PM, Henry Chou wrote: Hello, I have scoured through the mailing list archive and found nothing that suits my desired outcome. I want to be receiving a LoggingEvent from a server, then parsing the event (ie: reconstructing a pattern by calling the

Re: Caching LoggerPtr using local statics (the singleton pattern)

2009-05-26 Thread Curt Arnold
Try using the one parameter constructor for LoggerPtr, instead of the default constructor and then an assignment: static LoggerPtr singleton(log4cxx::LogManager::getLogger(some.logger)); There is a slight difference in order of events between the two. Using the default constructor,

Re: Trivial.cpp example not working

2009-04-10 Thread Curt Arnold
It was a little unusual that you were going off such a old tag. The current code is so unlike 0.9.7 which was the best release for a long time but no longer can be supported. You might try explicitly namesoace qualifying the classes like ::log4cxx::BasicConfigurator::configure Otherwise

Re: Log file should exist? how to log Chinese characters?

2009-04-08 Thread Curt Arnold
On Apr 8, 2009, at 4:17 AM, Lijuan Zhu wrote: I am new to Log4cxx, and just got it into my projects. I have two questions now: 1, The log file I specified in the xml configuration file should exist? how to change the configuration so the log4cxx could create the log file if it does not

Re: Log file should exist? how to log Chinese characters?

2009-04-08 Thread Curt Arnold
On Apr 8, 2009, at 4:17 AM, Lijuan Zhu wrote: I am new to Log4cxx, and just got it into my projects. I have two questions now: 1, The log file I specified in the xml configuration file should exist? how to change the configuration so the log4cxx could create the log file if it does not

Re: JMSAppender and Log4cxx

2009-03-30 Thread Curt Arnold
On Mar 30, 2009, at 7:11 PM, Greggg wrote: Hi All, I was wondering if there's a way to log (with Log4cxx) messages to JMS. I know that log4cxx doesn't have any JMSAppenders, something that Log4j comes with, but maybe there's a bridge or something that would let me do this. What I'm

Re: How to build simplesocketserver binary file?

2009-03-25 Thread Curt Arnold
On Mar 25, 2009, at 11:48 AM, Esther Parrilla-Endrino wrote: Hi Renny and all, I have followed your instructions and implemented a Java SimpleSocketServer application that is running with log4j, I have done a test Java class that initialize the logging and sends a couple of messages to

Re: How to build simplesocketserver binary file?

2009-03-24 Thread Curt Arnold
On Mar 24, 2009, at 10:19 AM, Moley Harey wrote: Hi, I have downloaded apache-log4cxx-0.10.0.tar.gz from Apacheś log4cxx web site and built the lib using the commands: configure, make, make install After that the lirbrary has been successfully built but the binary file

Wedding plans

2008-12-22 Thread Curt Arnold
Sorry about being a little slow to respond recently, but I've been working on wedding plans. Julie Ferguson and I are marrying in New Braunfels, TX on December 27th. Julie and I have known each other a little over 6 years as friends and we kept in touch infrequently after she moved away

Re: Modifying logFilePath for FileAppender using a PropertyConfigurator

2008-12-09 Thread Curt Arnold
On Dec 9, 2008, at 10:36 AM, [EMAIL PROTECTED] wrote: So, I answered my own question by searching a bit more on google. The syntax is ${ENVIRONMENT_VARIABLE}/directory/fileName.txt Now, one more question: How does one set up the logger to create a unique log file per run. I'm looking at

Re: Link error when using Layout on MS Windows

2008-12-09 Thread Curt Arnold
On Dec 9, 2008, at 2:44 PM, peter.doornbosch wrote: Hi, log4cxx::LoggerPtr tmpLogger( log4cxx::Logger::getLogger(SIM.TEST) ); // set logger level tmpLogger-setLevel( log4cxx::Level::getDebug() ); // set appender properties === log4cxx::PatternLayoutPtr layout( new

Re: 2 AsynchAppender and a Deadlock

2008-12-02 Thread Curt Arnold
On Dec 2, 2008, at 8:08 AM, [EMAIL PROTECTED] wrote: Hi, I have tried to use two AsyncAppenders, which have some Appenders in common, in parallel. I ended up in a deadlock. Has this never been tested or is it the intention to use one AsyncAppender at a time only?? This is not an offense,

Re: how to fix the error of '' inputstreamreader.cpp:66: error: 'memmove' was not declared in this scope ''

2008-11-28 Thread Curt Arnold
On Nov 25, 2008, at 8:43 PM, link wrote: when i compile log4cxx i get the same error message : inputstreamreader.cpp:66: error: 'memmove' was not declared in this scope can you tell how to fix it? Try adding to inputstreamreader.cpp a #include string.h and see if that helps. If it

Re: WG: doc links broken?

2008-11-07 Thread Curt Arnold
On Nov 7, 2008, at 4:35 AM, Andreas Pfaffenbichler wrote: Sorry, dyslexic error of mine. I am new at ---log4cxx---, and I found all links to the manual pages broken. Regards Andreas Pfaffenbichler Are these links on http://logging.apache.org or are these links in off- line resources?

ApacheCon live video streaming available; keynotes and Apache 101 are free

2008-11-04 Thread Curt Arnold
Can't make ApacheCon this week in New Orleans? You can still watch all the keynotes, Apache 101 sessions, and system administration track in live video streams: http://streaming.linux-magazin.de/en/program_apacheconus08.htm?ann Keynotes and the Apache 101 lunchtime sessions are free; the

Re: Log4cpp's SyslogAppender problem

2008-10-01 Thread Curt Arnold
On Oct 1, 2008, at 3:53 PM, Jacob L. Anawalt wrote: On 2008-10-01 12:00, Hoang, Minh-Long (Mission Systems) wrote: I'm having problem with log4cpp's SyslogAppender. Are you using log4cpp or Apache log4cxx? If you are using log4cpp, you should go to their mailing list.

Re: log4cxx 0.10 - make fails on Solaris 10

2008-09-30 Thread Curt Arnold
On Sep 30, 2008, at 7:52 AM, Ambarish Mitra wrote: Hello all, I have download the source of log4cxx 0.10, and trying to build on Solaris 10 - Sparc 64 bit. I have done configure correctly, and the makefile was generated. Now when I do a make, it gives me this error, and I do not know

Re: Accessing a LoggingEvent's properties using a PatternLayout

2008-09-21 Thread Curt Arnold
On Sep 21, 2008, at 8:11 PM, Adam Woods wrote: Can anybody help me with this issue? Is this a feature which was missed or is planned for a later release? Your help is greatly appreciated. Cheers, Adam Woods -Original Message- From: Adam Woods [mailto:[EMAIL PROTECTED] Sent:

Re: [log4cxx-users] Singleton class causes segfault at termination

2008-09-20 Thread Curt Arnold
On Sep 20, 2008, at 8:03 AM, Stefan Borovac wrote: Hi Oscar, just a guess. You are using an auto_pointer. That's not necessary as LoggerPtr is already a smart pointer. I had similar problems in the past. I have also designed a singleton which wrapps log4cxx and end up in massive termination

Re: Initialization problem

2008-09-17 Thread Curt Arnold
On Sep 17, 2008, at 5:35 AM, Alexander Rojas wrote: I'm working on Ubuntu 8.04 Hardy, log4cxx version 0.9.7-6, gcc 4.2.3. The IDE is kdevelop and the file is encoded as UTF-8. I don't know if this is all the relevant information. Thank you for your help Alexander Rojas log4cxx 0.9.7 is

Re: Forward Declaration

2008-09-12 Thread Curt Arnold
On Sep 12, 2008, at 12:00 PM, Jon Dahl wrote: Hello, I'm wondering if it is possible to use forward declaration with log4cxx classes in a class header file. I would like to exclude the log4cxx headers files in my header files if possible and include the log4cxx header files in my

Re: Can't build using Ant with MSVC 6.0

2008-08-27 Thread Curt Arnold
On Aug 27, 2008, at 6:48 AM, Moshe Matitya wrote: I am trying to build log4cxx 0.10.0 using ant, but the build fails because of apr-util compilation errors. Am I doing something wrong here? I am using the following environment: Micosoft Windows XP SP2 Microsoft Visual C/C++ 6.0

Re: apr-util-expat

2008-08-15 Thread Curt Arnold
On Aug 13, 2008, at 9:19 AM, Mehta, Jenica wrote: Hi, Any idea if expat project inside apr-util, has a separate project called XML. Apr-util depends on expat libs or xml lib? Or under some condition? Jenica Mehta Not quite sure what you are asking and seems like an APR question

Re: Upgrading from 0.9.7 to 0.10.0 - Pool Information

2008-08-05 Thread Curt Arnold
On Aug 1, 2008, at 4:39 PM, Chris D'Annunzio wrote: Hello, I am in the process of upgrading from version 0.9.7 to 0.10.0 of the log4cxx library. I’ve successfully built the library and I am now in the process of integrating into our product. Some of the methods that we were previously

Re: Extending DailyRollingFileAppender

2008-07-29 Thread Curt Arnold
Log4cxx::rolling::RollingFileAppender is designed to use an arbitrary triggering policy. Drfa is just an instance precinfigured with a specific policy. Instead of writing a new appended, you should consider writing a custom triggering policy. On Jul 29, 2008, at 6:48 AM, Moshe Matitya

Re: Build log4cxx as static library using MS Visual Studio 2003

2008-07-15 Thread Curt Arnold
On Jul 15, 2008, at 1:25 AM, Eberhard, Markus (external) wrote: Hello *, I ma trying to build log4cxx as static library using MS Visual Studio 2003, but it doesn’t work. I have opened the project log4cxx.dsw of the log4cxx package, converted it to a MS Visual Studio 2003 project, set the

Re: MAKE error : While compiling trivial.cpp:Urgent

2008-07-03 Thread Curt Arnold
On Jul 3, 2008, at 1:27 AM, srkraju wrote: When I give the ./configure command in apache-0.10.0 directory. It is giving following error: configure: error: APR could not be located. Please use the --with-apr option. What may the problem? Is with-apr option is required

Re: MAKE error : While compiling trivial.cpp:Urgent

2008-07-02 Thread Curt Arnold
On Jul 2, 2008, at 11:02 PM, srkraju wrote: Dear curt, I tried to commented the calls and getting the following error while I try to compile on Redhat Linux AS4(g++3.4.3). Kindly assist me to solve this issue. thanks regards srkraju From my previous message: ~ ~I've set up a virtual

Re: Unable to build Apr-util - missing rules.mk

2008-06-27 Thread Curt Arnold
On Jun 25, 2008, at 2:53 PM, David Tran wrote: Hi, I am not very familiar with APR and APR-utils. I ran configure, make, and make install on apr fine, but when I try to make/make install apr-utils, it can’t find the file build/rules.mk Specified in the generated Makefile. Can anyone tell

Re: MAKE error : While compiling trivial.cpp:Urgent

2008-06-20 Thread Curt Arnold
On Jun 19, 2008, at 10:56 PM, srkraju wrote: Still I am unable to solve this make error. Please suggest any modifications required in trivial.cpp Can use the libraries(like log4cxx,apr-1.2.2, aprutil-1.2.2) which are built in g++4.x in 3.x . thanks regards srkraju I had no problems

Re: URGENT compliation error of sample program (test.cpp)

2008-06-14 Thread Curt Arnold
On Jun 14, 2008, at 8:24 AM, Dale King wrote: On Sat, Jun 14, 2008 at 2:51 AM, srkraju [EMAIL PROTECTED] wrote: Though its giving the same error. I downloaded Ant-1.6.5. and extracted into /home/facts/Test/apache-ant-1.6.5/ directory. g++ test.cpp

Re: URGENT compilation error of sample program

2008-06-14 Thread Curt Arnold
On Jun 14, 2008, at 6:58 AM, srkraju wrote: Thanks Mr. Dale. I solved the link error problem by location the shared objects generated by Log4Cxx_0.10.0, Apr_1.2.2, Apr-Util_1.2.2 packages. [ Redhat Enterprise Linux AS5, g++ version 4.1.1] I am trying to run the sample programs (bar.h,

Re: MESSAGEBUFFER.H COMPILATION PROBELM

2008-06-14 Thread Curt Arnold
On Jun 12, 2008, at 11:46 PM, srkraju wrote: I tried with make, make install. And then proceeded. Now, I have tested 'make check' option. It also giving the same errors in messagebuffer.h thanks regards srkraju gcc 2.96 was a prerelease version of gcc 3.x and has an incomplete

Re: Unable to display caller name in log info

2008-06-13 Thread Curt Arnold
On Jun 13, 2008, at 10:15 AM, Debarshi Sanyal wrote: Hi, I wrote a small Java program to configure an org.apache.log4j.Logger and log messages using it. Excerpts from the Java file are: package MyPackage; //... public class LogTest { private static Hashtable cLoggerHash = new

Re: How to set a FileAppender to STDOUT?

2008-06-11 Thread Curt Arnold
On Jun 11, 2008, at 1:34 PM, Peter Steele wrote: What do I need to specify in the File parameter to mean STDOUT? I have this: appender name=FILE class=org.apache.log4j.FileAppender param name=File value=System.out/ ... which works in log4j but this just creates a file called

Re: Segmentation fault log4cxx 0.10.0 on app exit (Solaris 8)

2008-06-10 Thread Curt Arnold
On Jun 9, 2008, at 8:05 PM, Allen Liu (allliu) wrote: Hi Curt, I compiled log4cxx-0.10.0 with gcc on 3 Solaris 8/sparc workstations, 2 of which were installed with apr/apr-util 1.2.12 whereas the other apr/apr-util1.2.7. Before applying the objectimpl.cpp workaround you provided, 1.

Re: thread safe log4cxx

2008-06-08 Thread Curt Arnold
On Jun 8, 2008, at 1:43 PM, N N Murthy wrote: Our application is multi threaded application, developed using boost thread library. Is log4cxx thread safe? Where can we get more information? N N Murthy Logging should be thread-safe, all appenders and layouts that use shared resources

Re: Using the syslog appender in log4cxx

2008-06-06 Thread Curt Arnold
On Jun 6, 2008, at 10:51 AM, Dale King wrote: OK, I see now why it is only cosmetic. It only ends up being that way because the strings differ only in a character that is not a letter. That is a cumbersome way to do case insensitive comparison. It would be a lot easier to lose the third

Re: Is it safe to has different processes on the same machine log to the same file?

2008-06-05 Thread Curt Arnold
On Jun 5, 2008, at 1:23 PM, Stephen Bartnikowski wrote: I've been doing that for two years with no issue. It was my understanding that this was one of the major features of log4cxx, but I could be taking that for granted. - Stephen From: Peter Steele [mailto:[EMAIL PROTECTED] Sent:

Re: using RollingFileAppender

2008-06-02 Thread Curt Arnold
On Jun 2, 2008, at 7:13 AM, Madhu Gowda wrote: Hi all, I am trying to make use of RollingFileAppender. My code is as follows: LoggerPtr logger( Logger::getLogger(CustomLogger)); RollingFileAppender *pAppender = new RollingFileAppender(); Instead use: RollingFileAppenderPtr

Re: Segmentation fault log4cxx 0.10.0 on app exit ( RH Linux)

2008-05-30 Thread Curt Arnold
On May 30, 2008, at 3:16 PM, GregN wrote: Unfortunately your suggestion didn't fix the issue. Under debugger the problem happen in apr_atomic.c::apr_atomic_dec32() line:310. It is inside #if APR_HAS_THREADS. I tried to set APR_HAS_THREADS to 0 in include/apr.h but got system lookup error.

Re: Server side socket usage

2008-05-20 Thread Curt Arnold
On May 20, 2008, at 8:26 AM, Ruud Bos wrote: Hi, The above example works like a charm, thanks a lot! Does anyone know why this has been removed from log4cxx 0.10.0 ? Ruud The classes that emulate Java library classes are only there to support log4cxx. They are not intended to be used a

Re: Server side socket usage

2008-05-15 Thread Curt Arnold
On May 15, 2008, at 9:45 AM, Ruud Bos wrote: Hello, I'm new to the list, so I have no idea if this question has been asked many times before. I hope someone can put me in the right direction. I'd like to use log4cxx for two applications. One acts as a client that needs to send it's

Re: build head revision failed on windows xp

2008-05-14 Thread Curt Arnold
On May 14, 2008, at 1:20 AM, think twice wrote: i checkout the head revision of apr, apr-util , log4cxx, put them in the same root directory. Then i followed the instructions how to build log4cxx using ant on apache offical site, but it emits errors: [cc]

Re: LogString conversion

2008-05-12 Thread Curt Arnold
On May 12, 2008, at 9:15 AM, Madhu Gowda wrote: Hi, I tried the following in my sample program. std::string sLogFile = TestLog.txt; LogString sFileName; log4cxx::helpers::Transcoder::decode( sLogFile, sFileName); But, it gives the sFileName as . I tried to debug and saw that in the function

Re: log4cxx 0.10.0 build problem on AIX

2008-05-12 Thread Curt Arnold
On May 12, 2008, at 2:43 AM, Chakravarthula, Krishnamurthy wrote: Experts, Since I am getting error with gcc compiler, I am trying with default compiler (/usr/vac/bin/xlc_r) on AIX for build. I am able to build APR and APR-UTIL but I get following error during make of log4cxx. Please

Re: Individual logging output of multiple objects to multiple files

2008-05-08 Thread Curt Arnold
On May 8, 2008, at 7:12 AM, Michael Duerr wrote: Hallo, I'm writing a simulation application, that creates and destroys several objects of the same class during the simulation. I want to perform logging for each of these objects to a single file (i.e. I want only the output of one object

Re: Individual logging output of multiple objects to multiple files

2008-05-08 Thread Curt Arnold
On May 8, 2008, at 12:22 PM, Michael Dürr wrote: Hi Dale and Arnold, thanks a lot for your support. The idea to log from the beginning into different files was motivated by the size a single log file would have (up to 8GB) after a single run). But actually I have not thought at all

Re: log4cxx 0.10.0 build problem on AIX

2008-05-07 Thread Curt Arnold
On May 7, 2008, at 6:34 AM, Chakravarthula, Krishnamurthy wrote: Experts, I want to build log4cxx on AIX. As part of that, I am building apr- util. I am getting following error when I do make of apr-util on AIX machine. I am using apr-util 1.2.12. My machine configurations are as

Re: Urgent: log4cxx 0.10.0 build on HP Unix build problem

2008-05-06 Thread Curt Arnold
On May 3, 2008, at 6:04 AM, Chakravarthula, Krishnamurthy wrote: Hi Arnold, Please ask questions of the list instead of an individual developer. If you ask questions of a specific developer, that might discourage someone else from answering. I am getting following error when I do

Re: Why are there unimplemented filters defined?

2008-05-01 Thread Curt Arnold
On May 1, 2008, at 9:45 AM, Dale King wrote: It looks like there are a few filters that have header files, but no source files. In particular, AndFilter, ExpressionFilter, LocationInfoFilter, MapFilter and PropertyFilter appear to not be implemented. If there is no implementation I don't

Re: problems in building log4cxx-0.10.0

2008-04-30 Thread Curt Arnold
On Apr 30, 2008, at 7:41 AM, Madhu Gowda wrote: Hi, I am new to log4cxx. I downloaded the apache-log4cxx-0.10.0.zip, apr-util-1.2.10-win32- src.zip and apr-1.2.11-win32-src.zip. I am using Visual Studio 6.0 I am following the given instructions to build: unzip apr-1.2.11-win32-src.zip

Re: problems in building log4cxx-0.10.0

2008-04-30 Thread Curt Arnold
On Apr 30, 2008, at 7:53 AM, Madhu Gowda wrote: Hi, I am new to log4cxx. I downloaded the log4cxx-0.9.7.tar.gz and built it on Visual Studio 2005. I am trying a sample program given in the document that reads the configuration from log4j.properties and logs the messages in given log

Re: Rolling File appender with compression doesn't seem to work

2008-04-29 Thread Curt Arnold
On Apr 29, 2008, at 11:38 AM, Dale King wrote: I was testing out rolling file appenders (in Windows) which I set to rollover every minute so I can see what happens. Here is the appender: appender name=xmlfile class=org.apache.log4j.rolling.RollingFileAppender param name=filename

Re: Core dump in Solaris - log4cxx 0.10.0 Sample Program.

2008-04-29 Thread Curt Arnold
On Apr 29, 2008, at 2:10 PM, Unnikrishnan Udinoor wrote: Hi, Need your valuable inputs/findings on this issue. Let me know if I am missing something here in the procedure. This is stopping us from upgrading of the log4cxx libraries to the latest version in our application. Problem

Re: Rolling File appender with compression doesn't seem to work

2008-04-29 Thread Curt Arnold
On Apr 29, 2008, at 2:41 PM, Dale King wrote: Yes, that was the issue. If it can't do the compression it should default to behaving as though the compression suffix is not there. I'm thinking the current behavior is likely due to copying the log4j implementation where failure of

Re: Urgent: log4cxx 0.10.0 build on HP Unix build problem

2008-04-25 Thread Curt Arnold
On Apr 25, 2008, at 6:49 AM, Chakravarthula, Krishnamurthy wrote: I get the following error when I build log4cxx 0.10.0. Please advice. Did anybody get this working on HP Unix. If so, can you please pass on the configurations and build steps. objectptr.cpp: In static member function 'static

Re: log4cxx 0.10.0 dependency on libxml2

2008-04-24 Thread Curt Arnold
On Apr 24, 2008, at 2:35 AM, Chakravarthula, Krishnamurthy wrote: Experts, If I want to use log4j.xml with log4cxx 0.10.0, do I need libxml2 or any third part software? We want to use log4cxx for our product and want to evaluate if we need to license for libxml2 (for internal legal

Re: log4cxx 0.10.0 build on HP Unix build problem

2008-04-23 Thread Curt Arnold
On Apr 23, 2008, at 10:18 AM, Chakravarthula, Krishnamurthy wrote: Experts, I want to build log4cxx on HP Unix 11.11. I am using apr 1.2.12, apr-util 1.2.12. Build apr ./configure gmake Build apr-util ./configure –with-apr=pathto apr gmake I would try installling or building expat

Re: Building problems on windows

2008-04-22 Thread Curt Arnold
On Apr 22, 2008, at 8:03 AM, Павел Кудинов wrote: ant clean didn't help. The problem is still exactly the same. APR compiles before log4cxx and errors occurre on linkage step... Hopefully, I fill find time to try a Win64 build myself tomorrow. I'm still thinking the most likely cause of

Re: Building problems on windows

2008-04-21 Thread Curt Arnold
On Apr 21, 2008, at 4:02 AM, Павел Кудинов wrote: Thanks! I've solved first problem, but I cannot compile log4cxx in 64 bits as you said... Compilation step is ok, without errors. Errors are starting to fall on linkage step: The link step is failing to find APR provided methods.

Re: Building problems on windows

2008-04-20 Thread Curt Arnold
On Apr 20, 2008, at 7:30 AM, Павел Кудинов wrote: Hello everybody! Can you please help me with my questions? First, I have a problem building the last SVN version on Windows 2003 with VS2005. After some manipulations I finally made ANT compiling all this, but there is a compilation

Re: MDC::put won't overwrite an existing value

2008-04-16 Thread Curt Arnold
On Apr 16, 2008, at 10:33 AM, Jacob L. Anawalt wrote: Dale King wrote: MDC::put( key, value1 ); MDC::put( key, value2 ); Without a code example, I must ask; are these MDC::put calls in the same thread right next to each other? The attached program correctly swaps keys in 0.9.7. I

Re: should log4cxx protect itself from exceptions thrown by appenders?

2008-04-14 Thread Curt Arnold
On Apr 14, 2008, at 12:26 PM, J.T. Conklin wrote: Hi, When an appender's doAppend method throws an exception, it unwinds through the call stack. At the very least, this means that the log message won't be passed to any other appenders that might otherwise process it. It seems to me that

Re: log4cxx 0.10.0 Solaris build problem

2008-04-14 Thread Curt Arnold
On Apr 14, 2008, at 8:37 AM, Chakravarthula, Krishnamurthy wrote: Experts, When I am building log4cxx 0.10.0 on Solaris and I get the following errors. Please advice. [cc] __divdi30x174 ../ static/libapr-1.a(thread_cond.o) [cc]

Re: Additional patterns possible?

2008-04-12 Thread Curt Arnold
On Apr 11, 2008, at 1:28 PM, Patrick Lannigan wrote: In a project that uses log4net, I have successfully added the pattern demonstrated to access Windows Special folders http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200506.mbox/[EMAIL PROTECTED] I am now trying to do the

Re: Newbie question: Compiling log4cxx 0.10.0 RC at Window XP Visual studio 2003 without Ant?

2008-03-31 Thread Curt Arnold
On Mar 30, 2008, at 10:28 AM, Beni Bilme wrote: Hi, I have checkout the log4cxx from http://svn.apache.org/viewcvs.cgi/logging/log4cxx/trunk. In windows, I have not been able to find a visual studio project file and left to Ant build. I had to install jdk, ant. I download apr stuff but

Re: Help!: log4cxx\helpers\tchar.h(59) error snprintf identifier not found visual studio 2003

2008-03-31 Thread Curt Arnold
On Mar 31, 2008, at 3:26 AM, bilinmek istemiyor wrote: Hello, I have compiled the 0.9.7 version under visual studio 2003 by using the supplied visual studio project file under msvc. There was misleading instructions in the INSTALL file which was not valid. I just open the project file and

[VOTE] log4cxx-0.10.0 RC8

2008-03-31 Thread Curt Arnold
src/test/cpp/logunit.cpp in RC7 (and in all previous 0.10.0 RC's) is missing an #include locale.h that will cause a make check to fail to compile with Sun Studio 11, but does not apparently affect the other platforms. I do not see that defect sufficient to recall RC7, however I've

Re: wstring message failed to write to file

2008-03-21 Thread Curt Arnold
On Mar 21, 2008, at 4:40 AM, Piotr Wozniak wrote: Hi, I started to using log4cxx recently and I have problem to write wstring messages containing any local character, it just stops to write to file when receiving first of it until I restart application. I stepped into through sources and it

Re: Building log4cxx with VC8 using runtime library /MT

2008-03-20 Thread Curt Arnold
On Mar 20, 2008, at 3:50 AM, Andreas Grob wrote: Hi, Failed finding an option for ant to do it directly I did it hand made using the build-projects-vc8 option. For the libs apr, aprutil and log4cxx I open the properties dialog and changed the runtime library option to /MT (or /MTd for

Re: Use of operator

2008-03-18 Thread Curt Arnold
On Mar 18, 2008, at 10:25 AM, Stephen Bartnikowski wrote: Hi Josh, As far as I can tell support was dropped for those macros, which made me sad too. But it's not too hard to cook up some macros of your own. I did it like this: #define LOGGING_DEBUG(message) { \ if

  1   2   3   4   5   >