Re: generic questions on log4cxx

2006-05-24 Thread Curt Arnold
On May 24, 2006, at 10:54 AM, Arunkumar wrote: Hi Curt et al. I was discussing using log4cxx with my project arch. He had a few questions which I am posting here. Please post your replies as time permits. Any user inputs are appreciated also. We have to decide a logging API soon. 1) Can

Re: how to use %p and %Q formatting options under linux?

2006-05-26 Thread Curt Arnold
On May 26, 2006, at 7:13 AM, Jeffrey Graham wrote: Hello, I downloaded the CVS version 408722 just several days ago and have the following 2 problems with the pattern layout under Linux.. 1) %p always shows the current log level, not the level of the message When you set the level of th

Re: log4cxx: No level could be found named "null".

2006-05-29 Thread Curt Arnold
On May 29, 2006, at 10:06 AM, Jitendra Kharche wrote: I am getting the following error log4cxx: No level could be found named "null". What could be the reason. The log4cxx.xml file has following configuration. I believe this would occur in log4cxx 0.9.7 when logging was being attempte

Re: how to use %p and %Q formatting options under linux?

2006-05-29 Thread Curt Arnold
On May 28, 2006, at 10:20 AM, Jeffrey Graham wrote: Curt, Thanks for the great info. I thought that log4cxx would be further along than it is... I am currently using log4cpp with it's streams implementation and have been happy with it; it is thread safe and does not suffer from mangled bu

Re: Build works + OutputDebugAppender + Unicode

2006-05-30 Thread Curt Arnold
On May 30, 2006, at 9:11 AM, Arunkumar wrote: Hi guys, The head revision builds and the dll works for VS.Net 2003. The problem was dumb. My application was loading an older log4cxxd.dll from a different path (aaargh) and hence the linker and runtime errors popped up as the lib file did

Re: I am not able to send the zip

2006-06-09 Thread Curt Arnold
All attachments are rejected on the mailing list. Log a bug report on JIRA (http://issues.apache.org/jira), mark it as a contribution and attach the zip to the bug report. On Jun 7, 2006, at 7:16 PM, Arunkumar wrote: Hi guys, I tried sending the email 6 times with the zip file (with vari

Re: is millisecond supported?

2006-06-13 Thread Curt Arnold
On Jun 13, 2006, at 2:49 PM, jack wu wrote: i can't seem to make millisecond to work with the following pattern string: %d{%H:%M:%S:%Q} the rest shows up fine but %Q part shows as "%Q". is it not supported? i am using the latest code from cvs. jack. You should use the java.text.Simpl

Re: how to get the process ID from PatternLayout

2006-06-13 Thread Curt Arnold
On Jun 13, 2006, at 12:55 PM, Steck, David wrote: Just as an idea, you could push the process ID onto the NDC (or MDC) after you fork(), then display it with %x (or %X) in your pattern. -David [EMAIL PROTECTED] P.S. For anyone who knows: Looking at the documentation for MDC, why does the C++

Re: Can't checkout log4cxx from the SVN repository

2006-06-27 Thread Curt Arnold
Did a quick search and that message is likely due to a problem with a proxy server between you and svn.apache.org. As far as I can tell at the moment the Apache SVN servers appear to be responding fine, though you may have encountered a temporary glitch. The Subversion FAQ on proxy servers

Re: Config file problem

2006-06-28 Thread Curt Arnold
On Jun 28, 2006, at 5:26 PM, john ware wrote: Hi, I built a copy of log4cxx-0.9.8 on windows and now my app won't write to the log file. It was working fine using the previous version. There is a message sent to the console "log4cxx: No output stream or file set for the appender nam

Re: how to use log4cxx in library

2006-07-05 Thread Curt Arnold
Dependence on static initialization order is a known defect in 0.9.7 that has been fixed in the subversion repository for log4cxx. Unfortunately, there is not a simple fix that will correct log4cxx 0.9.7 behavior.

Re: logstream's wide character support

2006-07-16 Thread Curt Arnold
I've added your message to the comments on the logstream bug (https:// issues.apache.org/jira/browse/LOGCXX-18). Sounds like a good point and should be considered when work is resumed on that feature. Perhaps we could end up with a log4cxx::basic_string template with a typedef for log4cxx:

Re: warning: has virtual functions but non-virtual destructor

2006-07-18 Thread Curt Arnold
On Jul 18, 2006, at 4:40 AM, Ambarish Mitra wrote: I have written a small application using log4cxx (log4cxx 0.9.7), the code snippet is: Can anyone please provide pointers why these warnings comes? I would think this is a basic thing in CPP, a class with virtual functions should

Re: ant build error - g4cxx: Cannot get information about host: unknown.host.local

2006-07-26 Thread Curt Arnold
On Jul 25, 2006, at 5:29 PM, Mark wrote: I am trying to do a build for MS VC++ 7.1. I am using the latest ant and jdk 1.5. I checked out the svn trunk and followed the directions in the install file. I have patch.exe and sed.exe installed via cygwin (and cygwin\bin at the end of my path). T

Re: Newbie can not compile trivial.cpp. Help!!!!

2006-08-07 Thread Curt Arnold
On Aug 7, 2006, at 8:10 AM, bilinmek istemiyor wrote: Hello, I am very much new to C++ programming in MS Windows environment. I am asked to develop a C++ application with QT 3.2.3 on Windows platform with MS Visual C++ 7.1 .Net edition. I have been developing C programs mostly on solaris

Re: HowTo Disable Logging Output for classes using commons.logging

2006-08-28 Thread Curt Arnold
On Aug 28, 2006, at 3:45 AM, Peter Neu wrote: Hello, I use log4j-1.2.8. In my new project I use quartz. Quartz gives me a lot of logging messages that I don't need. It's especially dangerous because It writes all of this output to the log file of the server. --> log4j.logger.org.

Re: linking error whith 0.9.8 release

2006-09-06 Thread Curt Arnold
On Sep 6, 2006, at 4:50 AM, Nicolas Bastien wrote: Hi , i'm trying to compile the 0.9.8 version updated by svn, with gcc version 4.1.1on sparc-sun-solaris2.8 ( with apr , apr-utils, enable-unicode and without cppunit) I've got a linking error : ld: warning: file /app/DINB/local/lib

ApacheCON US 2006

2006-09-14 Thread Curt Arnold
ApacheCON US 2006 (http://www.apachecon.com) will be held on October 9-13 in Austin, TX. Registration prices increase yet again tomorrow and hotel reservations should be made soon to take advantage of the special conference room rates. I've tentatively scheduled a Logging Services BOF for

Re: Thread safety problem

2006-09-16 Thread Curt Arnold
Could you test using log4cxx::Level::getDebug() instead of log4cxx::Level::DEBUG? The static members DEBUG, INFO, etc are held over from 0.9.7 and log4j however non-local static member variables are problematic at best. I believe that DEBUG et al are marked as deprecated for that reason.

Re: Does log4cxx support variable-arguments?

2006-09-17 Thread Curt Arnold
On Sep 17, 2006, at 1:58 PM, sishen wrote: Hey. everyone. I'm a new user of log4cxx. I want to know whether log4cxx support variable argument? I have found the maillist archive, but i haven't got any answers. for example, like the macro: #define LOG4CXX_DEBUG(logger, message) it only tak

Re: Thread safety problem

2006-09-19 Thread Curt Arnold
On Sep 19, 2006, at 3:27 AM, Salvati Marc wrote: Hellom Thank you for answering. I tried to use log4cxx::Level::getDebug(). It does not change my problem. Aas my Stream and Logger are static, static log4cxx::logstream stream; static log4cxx::LoggerPtr logger; I was wondering if I had to "lock"

Re: Change log-level String

2006-09-22 Thread Curt Arnold
Don't believe there is a mechanism to configure that, but it would be achievable by providing a custom layout class and possibly, by providing a custom PatternConverter for PatternLayout. The %p pattern could be extended to process a trailing parameter to provide mappings of level values so

Re: ant build error - at test: PatternParserTestCase::testNewWord on unit test

2006-09-28 Thread Curt Arnold
On Sep 28, 2006, at 2:10 PM, Kaneko, Michimaro.* (MKANEKO) wrote: I am trying to do build for VC++ 6.0. I am using ant 1.6.5, jdk 1.5. I checked out the svn trunk yesterday and followed the install file. I have cpptasks.jar and ant-contrib.jar in the CLASSPATH. I installed GUN patch, GUN

Re: Problem with a test program

2006-10-11 Thread Curt Arnold
wchar_t is not sufficiently defined for Mac OS/X to allow implementation of decodeWide(). That particular unsatisfied link is the sign that the definition of wchar_t could not be determined. Same issue occurs on Solaris. The Ant build will tell you to build using has.wchar_t=0 to suppre

Re: failed to build with ant on Solaris2.8

2006-10-17 Thread Curt Arnold
On Oct 17, 2006, at 8:07 PM, Allen Liu (allliu) wrote: Hi, I attempted to build log4cxx off the SVN repository by the following command: ant -v -Dapr.dir=/usr/local/apr -Dcppunit.dir=/usr/local - Dhas.wchar_t=0 It seems to go well until building the target 'run-defaultinit- unittest':

Re: failed to build with ant on Solaris2.8

2006-10-18 Thread Curt Arnold
There was a cut and paste error in charsetdecoder.cpp where the IllegalArgumentException would have the "topage" value (which would be fixed as UTF-8) instead of the "frompage" which would be passed in as an argument. In addition, the exception throwing code didn't check for some special c

Re: failed to build with ant on Solaris2.8

2006-10-20 Thread Curt Arnold
Did the recent changes I committed to Subversion change the message? If it did, then the problem is that apr-util fails on a call to apr_xlate_open with topage being "UTF-8" and frompage being the new exception text. If it did not, then the problem is that apr_xlate_open is failing for "U

Re: failed to build with ant on Solaris2.8

2006-10-20 Thread Curt Arnold
Looks like I bungled the cut and paste and must have got distracted and not done a local build check before committing. I've hopefully fixed the code, but haven't comfirmed it with a build as I'm in a coffeeshop. Please try again.

Re: several compile errs from svn head 2006-10-23

2006-10-23 Thread Curt Arnold
On Oct 23, 2006, at 11:04 AM, Jing Zheng wrote: gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5.relocate2) 1. charsetencoder.cpp: missing a "}" at line 62 "else if (topage == APR_LOCALE_CHARSET) {" Sorry about that. It was an inadvertant error when I was trying to get a fix in quickly

Re: when/where can we get a usable log4cxx release

2006-10-23 Thread Curt Arnold
On Oct 23, 2006, at 12:23 PM, Jing Zheng wrote: I know from some previous posts that a release requires a vote process and it could take long. But getting sources from svn head and build doesn't look attractive at all. Trying to check out code and build could get into a situation I have t

Re: Cross compiling on 64 bit machine

2006-10-23 Thread Curt Arnold
My bad. Introduced a stupid typo (not type as I said in the commit message) while trying to help with the recent "failed to build with ant on Solaris2.8" thread. Fix should be in SVN now (rev 467116).

Re: failed to build with ant on Solaris2.8

2006-10-23 Thread Curt Arnold
ld not find any bugs that mentioned APR_LOCALE_ENCODING or nl_langinfo(CODESET). On Oct 20, 2006, at 6:35 PM, Allen Liu (allliu) wrote: -Original Message- From: Curt Arnold [mailto:[EMAIL PROTECTED] Looks like I bungled the cut and paste and must have got distracted and not done

Re: socketservertestcase.cpp fails to compile for RHEL 3 gcc-3.2.2

2006-10-24 Thread Curt Arnold
Already reported as https://issues.apache.org/jira/browse/ LOGCXX-142. The best solution would be to rewrite the code to not use the native platform forks, but to use apr_proc_create. Might try after lunch. On Oct 24, 2006, at 9:58 AM, Jing Zheng wrote: fork(), sleep(),execl() are not

Re: failed to build with ant on Solaris2.8

2006-10-24 Thread Curt Arnold
On Oct 24, 2006, at 3:57 PM, Allen Liu (allliu) wrote: When I ran "locale charmap", I got "646", which I don't find in the list provided by "iconv -l". (what I can find in the list are ISO646-US, ISO_646.IRV:1991, ISO646_JP, ISO646_CN, etc.) I still tried "iconv -f 646 -t UTF-8 SOMEFILE.txt"

Re: log4cxx 0.9.8

2006-11-14 Thread Curt Arnold
On Nov 14, 2006, at 4:39 PM, Vijai Kalyan wrote: There is a log4cxx-0.10.0.tar.gz available in that dir. Is there any reason why the build number might have been incremented? Yes, 0.9.8 implies binary compatibility with 0.9.7 which wasn't the case. The forthcoming version will be 0.10

Re: building latest on FreeBSD 6.0

2006-11-16 Thread Curt Arnold
__STDC_ISO_10646__ indicates that wchar_t contains UCS-4 code points. It isn't true on Windows where wchar_t is UTF-16 or on some Asian variants of Solaris. wchar_t on Mac OS/X is not explicitly defined. I'll look at your changes and see if I can generalize them.

Re: logstream and a std::string with zeros

2006-11-30 Thread Curt Arnold
On Nov 27, 2006, at 6:08 PM, Stephen Bartnikowski wrote: Hello, I'm doing the following: std::string message; [...] if (sm_logger->isDebugEnabled()) { log4cxx::logstream oss(sm_logger, log4cxx::Level::getDebug()); oss.setLocation(LOG4CXX_LOCATION); oss << message; oss.flush(); }

Re: Question on Unicode strings

2006-11-30 Thread Curt Arnold
On Nov 28, 2006, at 3:42 AM, Sorin POPA wrote: Hello, Arun! We have the same problem that you mentioned here, on this mailing- list. We try to transfer data in unicode format and do not manage to find a solution. Will you tell us, please, whether you found a solution to this problem and

Re: Problem mocking log4net appender

2006-11-30 Thread Curt Arnold
On Nov 30, 2006, at 12:39 PM, Matt Young wrote: Greetings :) I encountered a problem with NMock2 (1.0.2313.18049) while attempting to mock a log4net (1.2.10.0) appender. The mock appender throws an ExpectionException when log4net calls DoAppend and then log4net eats the exception the test fini

Re: log4j:ERROR setFile(null,true) call failed.

2006-11-30 Thread Curt Arnold
On Nov 30, 2006, at 6:45 AM, Thomas Thomas wrote: Hi, In my web application I have a "log4j.properties" in "C:\UserTemp \crawlerdata\helloworld" I have also a diretory "log" in "C:\UserTemp\crawlerdata\helloworld" I have, in the file " log4j.properties", these lines : # Path of the log-fil

Re: log4cxx XML configuration and validation

2006-12-05 Thread Curt Arnold
On Dec 5, 2006, at 7:45 AM, Sorin POPA wrote: Hello, amigos! There are two things I would like to ask advice for: 1.I would like to validate the XML configuration file for log4cxx in the project I am using. There is a "log4j.dtd" document in the 0.9.8 version from SVN which should ser

Re: How create 1 log file for a day?

2006-12-05 Thread Curt Arnold
On Dec 4, 2006, at 9:37 AM, val wrote: Since last time i used Configuration for LOG4CXX 0.9.7: log4j.rootLogger=DEBUG, R log4j.appender.R=org.apache.log4j.DailyRollingFileAppender log4j.appender.R.File=output/temp log4j.appender.R.DatePattern=.%Y-%m-%d-%H-%M log4j.appender.R.layout=org.apach

Re: custom appenders and DOMConfigurator

2006-12-05 Thread Curt Arnold
On Nov 30, 2006, at 11:17 AM, George Uecker wrote: I have a custom appender that is in a separate library because it has dependencies on some 3rd-party commercial libs. When I try to configure this appender, the DOMConfigurator says it can't find the class. What do I have to do to be abl

Re: XMLSocketAppender

2006-12-05 Thread Curt Arnold
On Dec 3, 2006, at 4:28 PM, Marc Rossi wrote: Went ahead and added the following line to the end of the XMLSocketAppender::renderEvent() method: os1->write(output) and it is now sending out the xml event info (although it still isn't displaying properly in chainsaw). Not sure why this l

Re: maturity

2006-12-11 Thread Curt Arnold
On Dec 11, 2006, at 9:20 AM, Bob Rossi wrote: Hi, I'm currently evaluating several logging libraries for use in a project. I've played with log4cpp, and am now looking at log4cxx. Is log4cxx mature? My general feeling from looking at the website is that the project should not be used yet in

Re: Linux deconstruction order problem

2006-12-12 Thread Curt Arnold
On Dec 12, 2006, at 5:22 PM, Stephen Bartnikowski wrote: Hi, I'm having a problem on shutdown of my application, but only on Linux. I've attached the stack trace of the last thread at the bottom of this message. From what I can tell, in frame 3, apr_atomic_casptr is attempting to lock

Re: Using log4cxx for Chinese Chars

2006-12-19 Thread Curt Arnold
On Dec 18, 2006, at 3:20 PM, Tao Yu wrote: Hi, Does log4cxx support print out Chinese chars (GB and BIG5)? If it does, what should I do to enable it? Thanks, Tao The subversion head provides both char* and wchar_t* versions of the logging request methods. In both cases, the arguments a

Re: Possible error with logging a stringstream

2006-12-21 Thread Curt Arnold
On Dec 21, 2006, at 4:21 AM, Tomas Andersen wrote: Hi! When using log4cxx I usually do something like this to build the log string. std::stringstream oss; oss << "This is my logging and the result is: "; int i=getANumber(); if( i == 1 ) { oss << "1"; } else { oss << "something else"; }

Re: missing stacktrace for jdbc appenders

2006-12-21 Thread Curt Arnold
On Dec 18, 2006, at 3:03 PM, Noordeen, Roxy wrote: Hi, I am using below configurations. I am getting stack trace for my console appender, where as staketrace is null in my jdbc appender. I am not sure what the issue with jdbc appender is. All my other fields are getting logged properly

Re: When can we expect a new release

2007-01-11 Thread Curt Arnold
On Jan 11, 2007, at 11:04 AM, Hassan Mehmet wrote: I am just using ant to do the build (using the msvc compiler). I have no problem building, just running the unit tests. I think it is actually a much more basic issue :) I don't have "sed.exe" on my machine! I'm going to download unxut

Re: Nice to have an "ant install" target

2007-01-12 Thread Curt Arnold
On Jan 12, 2007, at 4:53 AM, Hassan Mehmet wrote: Hi I've managed to build and test log4cxx (windows xp and msvc8). Now I want to install just the libraries and headers without all the artifacts (such as the test executables). It would be nice if the ant build.xml had an install target.

Re: new log4cxx releases

2007-01-12 Thread Curt Arnold
On Jan 12, 2007, at 12:05 PM, Rohit Wagle wrote: Hello, I'm new to this group so kindly pardon my ignorance if my question has been previously asked/answered by anyone. We are working on a research project and would like to know if any new releases of log4cxx are expected anytime soon and c

Re: How do I specify FIle Option?

2007-01-15 Thread Curt Arnold
On Jan 15, 2007, at 9:59 AM, Jeff Lynn wrote: Hi, I had been using the following configuration and the C++ code on many machines as suggested by the Log4C++ Short Introduction. However, I just encountered the following error one a new windows server this morning: File option not set f

Re: programmatically creating new logger instances?

2007-01-15 Thread Curt Arnold
On Jan 15, 2007, at 8:55 AM, Mark Toohey wrote: I'm in the process of adding an interface to log4cxx to allow it to be used with some existed C applications. We need to be able to log to different files from each module. I wanted to do this by creating separate loggers for each module and

Re: Force consecutive messages through Logger in multi-threaded environment ?

2007-01-18 Thread Curt Arnold
On Jan 17, 2007, at 8:35 AM, xx xx wrote: Hi, I use a log4cxx::Logger component in a multi-threaded environment. Is it possible to force a number of messages from a single thread to appear consecutively in the target appender ? So they won't be "scrambled" with messages sent from other thread

Re: status of ODBC appender.

2007-01-22 Thread Curt Arnold
On Jan 21, 2007, at 5:05 PM, Matthew Campbell wrote: It uses windows 32 api calls for odbc ;) If you totally rewrote it then yes that would be possible. On 1/21/07, Moshe Matitya < [EMAIL PROTECTED]> wrote:Why does it only work on Windows? If it uses the ODBC API, it ought to be possibl

Re: activating options in file appender

2007-02-02 Thread Curt Arnold
On Feb 1, 2007, at 3:31 PM, Mark Toohey wrote: Hi, I wrote some code which updates some fileAppenders after the files reach a certain size ( so once a file reaches x size it will be rolled over into an overflow file ). It was working fine when it was compiled as debug application (using

Re: Upgrading to v0.9.8

2007-02-06 Thread Curt Arnold
On Feb 6, 2007, at 12:25 PM, Andrew Chalk wrote: I had to upgrade an app. that used log4cxx. We made a lot of use of lines like: LOG4CXX_INFO(eventLogger, _T("Binding to: " << sBindIP.c_str() << ". Port: " << usPort << ". Link: " << sLinkNo.c_str())); I.e. we used inline ostringstream co

Re: Throwing IllegalArgumentException when using RollingFileAppender

2007-02-08 Thread Curt Arnold
On Feb 8, 2007, at 8:18 AM, Prathib Kumar wrote: Hi, Our product is having 4 different applications and using two different version of log4j. (1.1.3 and 1.2.13). When I m using rollingfile Appender in one of the application which uses log4j (1.2.13), It is throwing the following exception

Re: ant build error: cannot find windows.h for building apr-1.2.7

2007-02-09 Thread Curt Arnold
On Feb 9, 2007, at 6:23 AM, jorrit de vries wrote: Hello, I have been searching through google, but I cannot find the information I am looking for, so maybe someone on this list can provide me with some about the following issue: I have obtained the source for log4cxx from svn. Installed

Re: cppunit linking error when compiling using argument -Dlib.type=shared

2007-02-13 Thread Curt Arnold
On Feb 13, 2007, at 9:04 AM, jorrit de vries wrote: Hello, When building a clean build of all libraries (apr, apr-util, cppunit and log4cxx) using the following arguments '-Ddebug=true| false -Doptimize=speed -Dlib.type=shared' I get linking errors when building cppunit. When removing the

Re: How do I check if a LevelPtr is null ?

2007-02-13 Thread Curt Arnold
On Feb 13, 2007, at 9:52 AM, Steve wrote: I'm running into a problem when I get a logger that is not in my configuration file. The logger appears to be created with a null Level. How can I check if the level is null so I can set it to a default value ? Thanks. e.g. log4cxx::PropertyConfigurat

Re: Is there a way to retrieve the last logged message from log4cxx?

2007-02-13 Thread Curt Arnold
There is not something like that currently in log4cxx or log4j. I think it would be a bad thing to make your application behavior dependent upon log4cxx. For example, if this user configured the hierarchy threshold to OFF the exception would no longer available. In your particular case, y

Re: Does log4cxx SocketHubAppender work with Chainsaw ?

2007-02-15 Thread Curt Arnold
On Feb 15, 2007, at 6:26 PM, Steve wrote: Chainsaw connects to my SocketHubAppender and then immediately drops the connection. There were some old posts regarding this issue. I was wondering if this has been fixed/implemented ? Thanks. I believe there is still a problem and I do not know

Re: multiple socket appenders

2007-02-27 Thread Curt Arnold
On Feb 27, 2007, at 8:23 AM, Reid, Khalid wrote: The problem is that appender BENCHMARK1 and BENCHMARK2 may or may not receive the log messages. Can someone help me out? I'm not sure what you are asking. Are you saying that you are observing a problem in log4cxx where the BENCHMARK1 and BE

Re: log4cxx build - necessary packages

2007-03-01 Thread Curt Arnold
On Mar 1, 2007, at 1:28 AM, Anand Sherkhane wrote: Hi, I'm building log4cxx using autogen, confgure, and make. It requires apr and apr-util and cpp-unit amongst others. For that, I first build apr and apr-util. I don't build cpp-unit because that is optional. Then I provide path to the

Re: ant build options

2007-03-01 Thread Curt Arnold
On Feb 28, 2007, at 6:22 PM, Stephen Bartnikowski wrote: Hello, Is there a way to tell the ant build to not build apr and apr-util? For example, I already have apr and apr-util installed from the distribution iso but I'm getting build errors building apr-util during the log4cxx ant build

Re: compile errors using LOG4CXX_DEBUG

2007-03-07 Thread Curt Arnold
On Mar 7, 2007, at 10:14 AM, jorrit de vries wrote: Hello, I get the following errors every time I use the LOG4CXX_DEBUG macro. I use the following syntax: LOG4CXX_DEBUG(logger, "Switching to tool " + (*m_currentTool)->name); where 'logger' is defined in the class as: static LoggerPtr logger

Re: Official word on next release of log4cxx

2007-03-29 Thread Curt Arnold
On Mar 29, 2007, at 5:07 AM, Anand Sherkhane wrote: Hi, I'm terribly sorry for my incomplete previous mail(my browser has mapped few keys and it was sent accidentally) Here it is again. I was using log4cxx v0.9.7 and during trial runs, it started crashing(I think the reason was as mentio

Re: Using more than one logger

2007-04-02 Thread Curt Arnold
On Apr 1, 2007, at 10:44 AM, Rayapudi Sandeep-mgb376 wrote: Hi, I am a newbie to Log4cxx and I am trying to use more than one logger, and searched through mailing list but solution given doesn’t seem to work. Please look at my code and config file and reply me where I am doing it wrong

Re: Using more than one logger

2007-04-02 Thread Curt Arnold
On Apr 2, 2007, at 11:28 AM, Rayapudi Sandeep-mgb376 wrote: Hi, I removed asterics and tested, but it doesnt seem to work. Config: --- log4j.rootLogger=DEBUG log4j.logger.sysmonLogger=DEBUG, myappender log4j.additivity.sysmonLogger=false log4j.appender.myappender=org.apache.log4j.Ro

Re: Using more than one logger

2007-04-03 Thread Curt Arnold
On Apr 2, 2007, at 12:35 PM, Rayapudi Sandeep-mgb376 wrote: Hi Curl, Thanks for quick response - specified folder and file in properties do exist - given write permissions to ALL in ../logs/sysmon.log file - When i changed it to ConsoleAppender, it printed on console. - It did NOT worked when

Re: Is %l slow in Log4Cxx?

2007-04-11 Thread Curt Arnold
On Apr 11, 2007, at 2:15 PM, Marshall Powers wrote: The Log4Cxx docs says that the %l (for location) option in PatternLayout is “Extremely Slow”. Is this true, or was this just something left over from the Log4j documentation? The two documents are almost identical. Left over from log

Re: rollingfileappender ... not rolling?

2007-04-16 Thread Curt Arnold
On Apr 16, 2007, at 12:12 PM, Marshall Powers wrote: I’m trying to use a RollingFileAppender, but my log files are not “rolling” when it seems that they should. I am using a SizeBasedTriggeringPolicy with max file size = 100kb, and a FixedWindowRollingPolicy. When I start my program, if a

Re: rollingfileappender ... not rolling?

2007-04-16 Thread Curt Arnold
On Apr 16, 2007, at 1:01 PM, Marshall Powers wrote: Running on winxp 32 bit. I haven’t really looked into the unit tests. How do I run the unit test to verify the rolling file appender behavior? Marshall The Ant build should run the size-based tests as part of the build process. I

Re: rollingfileappender ... not rolling?

2007-04-17 Thread Curt Arnold
On Apr 17, 2007, at 9:42 AM, Marshall Powers wrote: This is not a multiple-process situation. It is multi-threaded, but the logging is wrapped in some synchronized singleton class. When I built the library, the unit tests caused some unhandled exception, but my co-worker assured me that th

Re: rollingfileappender ... not rolling?

2007-04-17 Thread Curt Arnold
On Apr 17, 2007, at 11:15 AM, Marshall Powers wrote: I tried running the unit tests, as you suggested, and they appeared to work fine. For kicks, I tried reducing the max file size of my SizeBasedTriggeringPolicy to 100 bytes, as in the test case. What I saw was when my application started

Re: Need help regarding a message printed from log4cxx

2007-04-27 Thread Curt Arnold
On Apr 27, 2007, at 1:22 AM, Anand Sherkhane wrote: Hi, I'm seeing this message printed on console: "log4cxx: Large window sizes are not allowed" Any idea why this is happening? The message should occur when you specify that you want to have more than 12 files in your rolling file "po

Re: std::string to LogString

2007-05-02 Thread Curt Arnold
If you are passing a string literal (for example, if you have your file name hard-coded in the source and it only contains US-ASCII character, then use something like: fileAppender->setFile(LOG4CXX_STR("temp.log")); or LogString fileName(LOG4CXX_STR("temp.log")); fileAppender->setFile(fileN

Re: Can't build HEAD with MinGW

2007-05-04 Thread Curt Arnold
On May 4, 2007, at 11:07 PM, Ken Klose wrote: I checked out the HEAD from the repository and am trying to build it using the ant build script. I am getting tons of compiler errors, below is just a sample. Thanks in advance for your help. Those are actually build errors in Apache Portab

Re: Can't build HEAD with MinGW

2007-05-07 Thread Curt Arnold
On May 5, 2007, at 1:48 PM, Ken Klose wrote: Curt, Thanks for the help. That indeed got me further along! I built against last night's snapshot of APR, made the changes you said to apr.h and got it to build. Now I'm getting an error in the build of log4cxx itself. "no type named `pos_

Re: RollingFileAppender not working on AIX

2007-05-09 Thread Curt Arnold
I'm pretty sure that configuration file would not work with log4j 1.3 either. org.apache.log4j.rolling.RollingFileAppender requires a nested triggeringPolicy (which determines when a roll occurs) and a nested rollingPolicy (which determines how files are named), though they can be both pro

Re: Application crashed while using log4cxx library

2007-05-09 Thread Curt Arnold
On May 9, 2007, at 5:46 AM, Rayapudi Sandeep-mgb376 wrote: Hi, I am using log4cxx (0.10.0 version) on RHEL 2.6 version. I built it with apr-1.2.8, apr-util-1.2.8. When I used that in my application it crashed with backtrace pointing to memcpy in stdc++ libraray.

Re: RollingFileAppender not working on AIX

2007-05-10 Thread Curt Arnold
On May 10, 2007, at 1:17 AM, Jitendra Kharche wrote: Thanks Arnold. I am using both log4cxx (v0.9.7) and log4j (v1.2.8). RollingFileAppender works fine with log4j but not with log4cxx (with the similar configuration). I will try with changes you suggested. But I am not able to find any pa

Re: RollingFileAppender not working on AIX

2007-05-14 Thread Curt Arnold
On May 14, 2007, at 12:40 AM, Jitendra Kharche wrote: Hi Curt, So what do you suggest me to use in place of log4cxx 0.9.7 so that my application has no impact. If you have been using log4cxx 0.9.7 for a prolonged period of time and have not been running into any other the other issues, t

Re: VC7 and log4cxxs.lib

2007-05-17 Thread Curt Arnold
Also looks like you were trying to use log4cxx 0.9.7 whose continued use is discouraged and unsupported. Now that I have log4j 1.2 building with Maven, I'm going to spend some time next week trying to get a log4cxx release candidate together. On May 17, 2007, at 5:45 PM, [EMAIL PROTECTED]

Re: build failed on solaris 9

2007-05-23 Thread Curt Arnold
On May 23, 2007, at 9:59 AM, Marshall Powers wrote: I'm not sure, but I would guess that ant is not making the compiler link the expat library. I had similar problems building my program with log4cxx on solaris. Try to run the configure script for APR-Util to see if it tries to link the ex

Re: build failed on solaris 9

2007-05-23 Thread Curt Arnold
On May 23, 2007, at 10:28 AM, Aditya Aggarwal wrote: Will try autotools, but what about the error that I get while building on windows vc++ 6. fails while running the unit tests. Firing it up right now. The unit tests are known to fail with VC 6 (but pass with later VC's) due to what ap

Re: IOT/Abort Trap on AIX 5.3

2007-05-23 Thread Curt Arnold
Similar problems had been reported before on AIX due to the few remaining non-local statics (Level::DEBUG, Level::INFO, etc). I didn't see an existing bug report so I filed LOGCXX-181 (https:// issues.apache.org/jira/browse/LOGCXX-181) and finally pulled the plug on the problematic static m

Re: build failed on solaris 9

2007-05-23 Thread Curt Arnold
On May 23, 2007, at 10:28 AM, Aditya Aggarwal wrote: clean-output: [delete] Deleting 97 files from C:\logging-log4cxx\tests run-unittest: [exec] Assertion failed: stat == APR_SUCCESS, f ile C:\logging-log4cxx\tests\src\util\transformer.cpp, line 212 [exec]

Re: build failed on solaris 9

2007-05-23 Thread Curt Arnold
On May 23, 2007, at 11:57 AM, Aditya Aggarwal wrote: Thanks Curt, yup i do get those failures. :( so I commented out run-unittest from the build file, and got a successful build. just wondering if I should continue using log4cxx on VC6, since the test fails, I fear calls to log4cxx might

Re: IOT/Abort Trap on AIX 5.3

2007-05-23 Thread Curt Arnold
On May 23, 2007, at 4:00 PM, Marshall Powers wrote: OK I solved my own problem. I looked a little closer, and the only thing that stood out about the one-argument error functions was that they were declared const. I removed the "const" from those two functions, removed the call to error() f

Re: IOT/Abort Trap on AIX 5.3

2007-05-24 Thread Curt Arnold
On May 24, 2007, at 9:20 AM, Marshall Powers wrote: Ok, I finally finished rebuilding the log4cxx stuff, recompiling this (big) project, fixing log4cxx, re-recompiling, and finally deploying and running, and I get a segfault (but not the same IOT/Abort Trap message). I went back to my simp

Re: trivial example fails with 64bit build on aix

2007-05-29 Thread Curt Arnold
On May 29, 2007, at 8:13 AM, Bala wrote: I am having logcxx dated october 2006. I am trying to get it working on 64 bit platform AIX 5.3 Compiler Xlc 6.0.0.11. Strangely on AIX alone i get the following output on running trivial. When i run the testsuite, the INFO, WARN, FATAL logger name

Re: trivial example fails with 64bit build on aix

2007-05-29 Thread Curt Arnold
On May 29, 2007, at 6:56 PM, Curt Arnold wrote: Are you calling setlocale(LC_ALL, "") sometime before log4cxx is initialized? If not, then the value of the default encoding retrieved by log4cxx may not meet your expectations. There is an open bug related to the issue so

Re: trivial example fails with 64bit build on aix

2007-05-30 Thread Curt Arnold
On May 30, 2007, at 3:54 AM, Bala wrote: Curt Arnold apache.org> writes: If you used the make build for apr-util, what happens if you run "make check"? If you didn't, could you try it. I believe there is a test of apr_xlate in the suite, but haven't checked. The t

Re: Log4cxx encryption questions

2007-06-18 Thread Curt Arnold
On Jun 18, 2007, at 8:40 AM, Kenneth Selin wrote: Hello everybody! We are using log4cxx and for our housekeeping of our 3PPs, I need to find out if any encryption algorithm is used in log4cxx (not that I expect that it includes encryption, but I ask anyway). 1. Does log4cxx include an encry

Re: Best strategy to ensure a rolling when an application is launched

2007-06-18 Thread Curt Arnold
On Jun 18, 2007, at 8:35 AM, Florian Seydoux wrote: Hello, I'm using log4cxx with a standard application (not supposed to be runned continuously), but I want to have two logs, one per day (in order to check potential problems returned by the 'users', i.e. probably not immediately) , and anot

Re: Logger::getLogger(__FILE__) fails in release builds

2007-06-18 Thread Curt Arnold
On Jun 13, 2007, at 8:09 PM, jorrit de vries wrote: I am sorry, I forgot to mention I am using Visual Studio 2005 SP1 and a two months old SVN version of log4cxx. -Original Message- From: jorrit de vries [mailto:[EMAIL PROTECTED] Sent: Thu 6/14/2007 3:07 To: log4cxx-user@logging.apa

Re: Logger::getLogger(__FILE__) fails in release builds

2007-06-18 Thread Curt Arnold
On Jun 13, 2007, at 8:07 PM, jorrit de vries wrote: Hello, After a long search for why my application hang in Release builds when using code like: LoggerPtr logger(Logger::getLogger(__FILE__)) I would like to know why this is. Could anybody explain this to me? Best regards, Jorrit p.s.

<    1   2   3   4   5   6   7   >