logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

RE: NTEventLogAppender: msg#00006

apache.logging.log4cxx.user

Subject: RE: NTEventLogAppender

Thank you...
 
It worked like a champ...
 
The only issue I ran into, is if you *DO NOT* define a host, it bombs in log4cxx.dll.  Other than that, it should surely be incorporated into 0.9.8 IMHO.
 


From: Daniel Einspanjer [mailto:deinspanjer@xxxxxxxxx]
Sent: Wed 3/2/2005 11:37
To: Log4CXX User
Subject: Re: NTEventLogAppender

When I had this problem, it turned out to be because
NTEventLogAppender only has the capability to log using an RPC call
and my server was locked down to not accept "remote" event logs.  I
fixed this by patching the 0.9.7 NTEventLogAppender to have better
error logging and to use the local API if the server was an empty
string.

Even if you are not logging to the local host, the error logging might
be beneficial to you for tracking your trouble down.

Attached is a patch for 0.9.7


On Tue, 1 Mar 2005 15:54:49 -0800, Ron Ohmer <rohmer@xxxxxxxxxxxxxxxxx> wrote:
> I too am having difficulties with this...
>  
> Here is the my add appender code:

>
> #ifdef WIN32
>
> NTEventLogAppender* ntlog=new NTEventLogAppender();
>
> ntlog->setLog("Application");
>
> ntlog->setServer("flormo04");
>
> ntlog->setName("syslogappender");
>
> ntlog->activateOptions();
>
> CConfig::GetLogger()->addAppender(ntlog);
>
> #endif
>
> Where CConfig::GetLogger() is the logger...
>
> Do all the other types of loggers fine, but this one gives me:
>
> NT Event Log not opened..
>
>  
>
> I have tried it with out the set... Commands as well...
>
> Any advice?
>
> Thanks!
>
> Ron

<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive 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

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo