|
|
Sponsor |
RE: No appenders could be found for logger: msg#00072apache.logging.log4cxx.user
I withdraw the question. I have found the error. In the .so file, the configure was not called correctly. My mistake, and sorry for this. > -----Original Message----- > From: Ambarish Mitra [mailto:ambarish_mitra@xxxxxxxxxxxxxxxx] > Sent: Thursday, February 24, 2005 12:03 PM > To: log4cxx-user@xxxxxxxxxxxxxxxxxx > Subject: No appenders could be found for logger > > Hi, > > I have written two separate and independent test programs to implement the > log4cxx functionality, one is a stand-alone EXE and the other is a shared > object (.so). The EXE is working correctly, and the shared object is > outputting: > > No appenders could be found for logger (Test_so). > Please initialize the log4cxx system properly. > > > Both of these are using the *same* properties file. I have written another > small EXE that just calls the function exposed by the shared object, > that's all. [the shared object has the logging mechanism of log4cxx] > > The snippet of the properties file is given below. Please advise if I am > missing something. {OS: Solaris 8; compiler: gcc 3.3.2} > > > log4j.rootLogger=debug, stdout, R > > log4j.appender.stdout=org.apache.log4j.ConsoleAppender > log4j.appender.stdout.layout=org.apache.log4j.PatternLayout > > # Pattern to output the caller's file name and line number. > log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (F:L) - %m%n > > log4j.appender.R=org.apache.log4j.RollingFileAppender > log4j.appender.R.File=../logs/example.log > > log4j.appender.R.MaxFileSize=100KB > > # Keep one backup file > log4j.appender.R.MaxBackupIndex=1 > > log4j.appender.R.layout=org.apache.log4j.PatternLayout > log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n > > Regards, > Ambarish. > > <<attachment: winmail.dat>>
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | No appenders could be found for logger, Ambarish Mitra |
|---|---|
| Next by Date: | memory leak, Yoshinori_Watanabe |
| Previous by Thread: | No appenders could be found for logger, Ambarish Mitra |
| Next by Thread: | Unicode Logging questions, LECHNER Martin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|