Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 94164 invoked from network); 18 Aug 2006 02:43:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Aug 2006 02:43:14 -0000 Received: (qmail 9357 invoked by uid 500); 18 Aug 2006 02:43:13 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 9304 invoked by uid 500); 18 Aug 2006 02:43:13 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 9291 invoked by uid 99); 18 Aug 2006 02:43:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Aug 2006 19:43:13 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Aug 2006 19:43:12 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DD19D7142C7 for ; Fri, 18 Aug 2006 02:40:14 +0000 (GMT) Message-ID: <29396045.1155868814903.JavaMail.jira@brutus> Date: Thu, 17 Aug 2006 19:40:14 -0700 (PDT) From: "Alex Karasulu (JIRA)" To: dev@directory.apache.org Subject: [jira] Commented: (DIRSERVER-667) Logging level settings ignored in apachedsw.exe windows NT service frontend (apachedsw.exe) In-Reply-To: <4369151.1152655949857.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DIRSERVER-667?page=comments#action_12428884 ] Alex Karasulu commented on DIRSERVER-667: ----------------------------------------- Procrun is broken ---------------------------- I don't think this is working at all. Meaning the stderr and stdout redirection is broken or something is wrong with logging output to stdout. The procrun executable has issues. If this was working properly then the default logging output would go the stdout log file. It's not so we have issues. Procrun log level != ApacheDS log level -------------------------------------------------------------- Before I go on let me make a point about the logging facility in the service manager. This is the procrun service manager customized for ApacheDS. It's log level is *NOT* the log level of ApacheDS. This log level is for the service manager code for running ApacheDS as a service on windows. To adjust the logging properties of ApacheDS you need to edit the log4j.properties file in the conf directory of your installation. Workaround when running in service mode ------------------------------------------------------------------- I do have a temporary workaround for this logging issue after some experimentation. You can get nlog4j to append logs to a log file in addition to stdout. Below I have configured a rolling log file as well as the stdout appender. I'd leave the stdout appender to allow apacheds.exe to pump logs out to the console when run in nonservice mode. I've attached this log4j.properties file to this JIRA. When you put this into your conf directory you're ApacheDS instance will produce a apacheds-rolling.log and apacheds-rolling.log.1 file. By default it will generate this file in C:\Windows\system32 so you want to generate it somewhere else preferably in the log directory of your installation. To point it to my ${install}\var\log directory I modified the working path on the Startup and Shutdown tabs to C:\Program Files\apacheds-1.0-RC4-SNAPSHOT on my system. Hope this works for you. BTW that log4j.properties file is here: https://issues.apache.org/jira/secure/attachment/12339062/log4j.properties > Logging level settings ignored in apachedsw.exe windows NT service frontend (apachedsw.exe) > ------------------------------------------------------------------------------------------- > > Key: DIRSERVER-667 > URL: http://issues.apache.org/jira/browse/DIRSERVER-667 > Project: Directory ApacheDS > Issue Type: Bug > Affects Versions: 1.0-RC3 > Environment: Win2k JDK 1.5-06 > Reporter: Alain Pannetier > Assigned To: Alex Karasulu > Priority: Critical > Attachments: log4j.properties > > > apachedsw.exe appears to ignore the requested settings for logging level. > How to reproduce > 1 - run %apacheds_home%\bin\apachedsw.exe > 2 - In the "Logging" tab from the level combo, select Debug > 3 - In the log prefix type test_debug.log > 4 - in the log path set sth such as : C:\tmp\log > 5 - In the Redirect stdout type C:\tmp\log\apacheds-stdout.log > 6 - In the Redirect stderr type C:\tmp\log\apacheds-stderr.log > 7 - Click on "Apply" and restart service. > Perform some typical LDAP requests > Have a look at the files in C:\tmp\log\ > All the expected files are there. None have any debug log entry... > I can possibly help if told where to look. > Thanks. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira