RE: File Appender in log4j

2006-11-28 Thread Shuh Chang
I think you can set the MaxBackupIndex parameter like this: log4j.appender.drfa.MaxBackupIndex=7 -Original Message- From: ying lcs [mailto:[EMAIL PROTECTED] Sent: Monday, November 27, 2006 10:42 PM To: Log4J Users List Subject: Re: File Appender in log4j Thanks for the advice. Can

RE: NTEventLogAppender with missing description source for Windows Server 2003

2006-11-22 Thread Shuh Chang
, but the DllRegisterServer entry point was not found. This file can not be registered. Again, I tried it in both cases (the NTEventLogAppender.dll is located in C:\Windows\system32 or C:\WINNT\system32), and none works. Regards, Shuh -Original Message- From: Shuh Chang [mailto:[EMAIL PROTECTED

RE: NTEventLogAppender with missing description source for Windows Server 2003

2006-11-22 Thread Shuh Chang
Yeah, it looks like that the calls to RegisterEventSource in the nteventlog.cpp program might be out of sync. In the Java_org_apache_log4j_nt_NTEventLogAppender_registerEventSource function (for initial event source registration): jint handle = (jint)RegisterEventSource(nserver, nsource); In

RE: NTEventLogAppender with missing description source for Windows Server 2003

2006-11-22 Thread Shuh Chang
I need to make a correction: I just found out that the NTEventLogAppender.dll *does* create the default Log4j entry (or any other source specified in the log4j.properties) in the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\So urces registry. That's my mistake. Sorry

NTEventLogAppender with missing description source for Windows Server 2003

2006-11-21 Thread Shuh Chang
Hi, I am using logging-log4j-1.2.14 to log data with great success for various log4j appenders: 1. RollingFileAppender for local lolg file. 2. SyslogAppender for remote syslog on Linux platform. My Windows platforms tested include both Windows Server 2003 and Windows XP. However, for the