BUNBURY Myles | 1 Jun 2007 16:38
Favicon

Null & inherited log levels in properties file causing crashes

If I set a logger level to 'null' or 'inherited' in my
log4cxx.properties file, my application terminates as soon as I call
PropertyConfigurator::configureAndWatch().

Is this a known bug? If so, is there a workaround?

I've been using the CVS head as of mid-March. I just downloaded and
compiled the latest source from CVS head as of yesterday, and the
problem persists.

---

Myles Bunbury, BASc.
Software Development Engineering Specialist
Web Services Internal Ventures
Alcatel-Lucent

Phone: (613) 784-4325
Fax: (613) 784-8944
Web: www.alcatel-lucent.com

Sohana Chowdhury | 1 Jun 2007 21:35
Picon

Redirect log file location

Hi,
Do you have any idea of how to redirect the location of the log file?

My log4j.properties file has
log4j.appender.A2.file=ABCDlogfile.log

When I run the program, it creates the log file in a folder I am not
expecting it to be. I want to be in the tomcat/logs directory. Of course I
do not want to hard code the absolute path for inconvenience to the users.
The web app runs on different platform/servers.

Any idea on how to redirect the log file location?

Thanks
Sohana 

Dandekar, Sheel | 11 Jun 2007 23:32
Picon
Favicon

installation - can't find liblog4cxx.10.dylib

Hi,

I'm trying to install log4cxx (svn) on Mac OS X , and I'm having trouble getting make install to work. 
./configure and make both run with no errors, so I think all the prerequisites (ant-contrib, cpptasks, 
apr, apr-util) are being found.  When I run make check, I get the following error:

dyld: Library not loaded: /usr/local/lib/liblog4cxx.10.dylib
  Referenced from: /Users/admin/Desktop/wavewatcher/logging-log4cxx/tests/src/.libs/testsuite
  Reason: image not found
make[1]: *** [run-unittest] Error 133
make: *** [check-recursive] Error 1

When I run make install, i get:

Making install in src
/bin/sh ../mkinstalldirs /usr/local/lib
 /bin/sh ../libtool --mode=install /usr/bin/install -c  liblog4cxx.la /usr/local/lib/liblog4cxx.la
libtool: install: warning: relinking `liblog4cxx.la'
(cd /Users/admin/Desktop/wavewatcher/logging-log4cxx/src; /bin/sh ../libtool --mode=relink g++
-g -O2 -L/Users/admin/Desktop/apr-1.2.8 -lapr-1 -lpthread
-L/Users/admin/Desktop/apr-util-1.2.8 -laprutil-1 -lsqlite3
/Users/admin/Desktop/apr-util-1.2.8/xml/expat/lib/libexpat.la -liconv -o liblog4cxx.la -rpath
/usr/local/lib -version-info 10:0:0 - -L/Users/admin/Desktop/apr-1.2.8 -lapr-1 -lpthread
action.lo appenderattachableimpl.lo appenderskeleton.lo aprinitializer.lo asyncappender.lo
basicconfigurator.lo bufferedwriter.lo bytearrayinputstream.lo bytebuffer.lo
cacheddateformat.lo charsetdecoder.lo charsetencoder.lo class.lo classnamepatternconverter.lo
classregistration.lo condition.lo configurator.lo consoleappender.lo cyclicbuffer.lo
dailyrollingfileappender.lo datagrampacket.lo datagramsocket.lo date.lo dateformat.lo
datelayout.lo datepatternconverter.lo defaultcategoryfactory.lo defaultconfigurator.lo
domconfigurator.lo exception.lo fallbackerrorhandler.lo file.lo fileappender.lo
(Continue reading)

Ahmed.Riaz | 12 Jun 2007 04:00

Ahmed Riaz/EXTERN/o2-Germany is out of OFFICE....

I will be out of the office starting  09.06.2007 and will not return until
08.07.2007.

Hi,
I will be on vacation starting from 11.06.2007 to 06.07.2007.

I will be back in office on 9th July 2007.

For any issues :
1. On Environment please contact Roland Behm / Stuart Barlow.
2. On RIA R22 clarifications contact Matthias Keim / Thomas Schmidbauer
3. On SDR & IMEI Delock functionality contact Martin Burkardt / Matthias
Keim

Thankyou,

with best regards,
RiazAhmed

Torsten Wiebesiek | 13 Jun 2007 15:22
Picon

Re: log4cxx VS2005 Project file + Win32 Binary

Hi merc,

> I've been searching for a VS2005 project file or binary for log4cxx,
> but without any luck. No choice but to went through a bumpy journey
> to get the ant build from 0.10.0 source.
>
> Anyway, I posted it up here, hope that its some use to anyone who is
> working with VS2005:
> http://www.dreamcubes.com/blog/?itemid=43

thanks for your detailed description on building log4cxx on a windows
system. I was very close to giving up, even though I'm very happy with
the current svn-snapshot of it on my Linux platform.

Let me summerize your journey for those not having time to read your 
detailed description: (please correct me, if I'm wrong at some point)

- building log4cxx with 'ant' failed
- creating project files for M$ Visual C++ 2005 with 'ant
build-project-vc8'
  succeeded
- building log4cxx with M$ Visual C++ 2005 VS and the created project
  files failed
- creating project files for M$ Visual C++ 6 with 'ant
build-project-vc6'
  succeeded
- building log4cxx with M$ Visual C++ 6 VS and the created project files
  finally succeeded
- converting the VS-6 project files to VS-2005 files and builing log4cxx
  (using the Visual Studio 2005) succeeded
(Continue reading)

jorrit de vries | 14 Jun 2007 03:07
Picon

Logger::getLogger(__FILE__) fails in release builds

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

jorrit de vries | 14 Jun 2007 03:09
Picon

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

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:jorrit.devries <at> student.hu.nl]
Sent: Thu 6/14/2007 3:07
To: log4cxx-user <at> logging.apache.org
Subject: Logger::getLogger(__FILE__) fails in release builds

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

Torsten Wiebesiek | 14 Jun 2007 12:24
Picon

Retrieve logger hierarchy

Hi,

I'd like to change the logging behavior of my program at runtime.
Therefore, I'd like to visualize the current logger hierarchy. Can
someone tell me, how to access the logger hierarchy?

The log4cxx::Hierarchy::getCurrentLoggers() function should help, but
how can I get the hierarchy object corresponding to the current logger
hierarchy? With log4cxx::Logger::getLoggerRepository(), I can only
access the repository, not the derived hiearchy.

Regards,

  Torsten

Kenneth Selin | 18 Jun 2007 15:40

Log4cxx encryption questions


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 encryption algorithm?

2. If an encryption algorithm is included: what encryption algorithm is
implemented?

3. If an encryption algorithm is included: what is the key bit length
being used?

Thanks a lot!
/Kenneth

Florian Seydoux | 18 Jun 2007 15:35
Picon

Best strategy to ensure a rolling when an application is launched

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 another per run (with retention of 5~10 runs), for
debugging purpose.

Unfortunately, both RollingFileAppender and DailyRollingFileAppender
can't be used (at least directly), because the application is supposed
to be running when it's time to roll.

At your opinion, what is the best way for me to 'force' a test of the
rolling policy when the application is runned ?
Should I create my own appender, or there is something that I've missed ?

regards

fs

(and sorry for my poor engl).


Gmane