Return-Path: Delivered-To: apmail-incubator-jspwiki-dev-archive@minotaur.apache.org Received: (qmail 50715 invoked from network); 6 Sep 2009 16:45:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Sep 2009 16:45:53 -0000 Received: (qmail 20873 invoked by uid 500); 6 Sep 2009 16:45:53 -0000 Delivered-To: apmail-incubator-jspwiki-dev-archive@incubator.apache.org Received: (qmail 20824 invoked by uid 500); 6 Sep 2009 16:45:53 -0000 Mailing-List: contact jspwiki-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jspwiki-dev@incubator.apache.org Delivered-To: mailing list jspwiki-dev@incubator.apache.org Received: (qmail 20814 invoked by uid 99); 6 Sep 2009 16:45:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Sep 2009 16:45:53 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of harry.metske@gmail.com designates 209.85.220.224 as permitted sender) Received: from [209.85.220.224] (HELO mail-fx0-f224.google.com) (209.85.220.224) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Sep 2009 16:45:43 +0000 Received: by fxm24 with SMTP id 24so1481494fxm.12 for ; Sun, 06 Sep 2009 09:45:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=CXqaYlUxCH1k1Tmfdurkcd9qg/AG1IzcBKgjcVCPR1w=; b=Ol8BWz888mqF8jwSL7thy5KH7cLdfDFzAAW7SxkFXkPq5WKy0PyWbbUoTsUxy92HDq UamgXAE8CoJMicavBSz/WSNJBh+LPli8yMfg8oa2DH+mPF5MhUjI+6LVRsRs4eMq7eD5 2pkXCb7ogzdsACBY1sspxKaw53SsJL5NnGhkw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=iN7DQlJCKZNCTTVstU2h0cUwTjUsppKb17yeA3vI+jG/5TcsuO230c13IzxhhaMm3O FY/nf4oznGKR0CxuVNfPsOYzuWyA5TQP3xi49UKtK9d5u8tlQulZHy0zG5wui36Z3o2v Hn+CdfoD7uHs6F2sFKS/m46tUqyHsWWngmv5M= MIME-Version: 1.0 Received: by 10.204.13.68 with SMTP id b4mr11173925bka.177.1252255522063; Sun, 06 Sep 2009 09:45:22 -0700 (PDT) In-Reply-To: References: Date: Sun, 6 Sep 2009 18:45:22 +0200 Message-ID: <3a6c97f00909060945o2864cf4fu59af20916475114d@mail.gmail.com> Subject: Re: Restart logging? From: Harry Metske To: jspwiki-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=00151750d9d48f869e0472eb75c7 X-Virus-Checked: Checked by ClamAV on apache.org --00151750d9d48f869e0472eb75c7 Content-Type: text/plain; charset=UTF-8 Well, we have our own logging layer (org.apache.wiki.log) which talks to slf4j which talks to a real logging implementation (with log4j as the default). The first two don't have support for configuring logging at all, the writer of slf4j says you also shouldn't : http://www.slf4j.org/faq.html#configure_logging Log4j itself does support dynamic configuration of logging, but that has explicitly not been put in the slf4j interface. We do however have some way of dynamically configuring our loggers, and that's through the MBeans (currently you have to use jconsole to do it, but a nice GUI for it would still be nice). This is however limited. So with "restart logging" you could something in that direction, but again, that is limited to log4j, if you run another logging implementation, you are left alone in the dark. BTW, what exactly would be the difference between restarting the engine and reloading the whole webapp ? regards, Harry 2009/9/6 Andrew Jaquith > Hi all -- > > I am doing a bunch of work on the installer/config code. I've already > got some really cool features implemented (LDAP config and live > testing, Stripesification of the interface, configuration of multiple > properties files simultaneously...). One thing I would REALLY like to > do is to be able to apply changes to the wiki WITHOUT requiring a > webapp reload. > > To that end, I wrote a restart() method for the WikiEngine, and it > seems to work perfectly except in one respect: I can't figure out how > to restart the logging subsystem. Any hints? I'd like to be able to > allow the admin to specify the desired log file location, and after > restart all of the logging is redirected there. > > Actually, there is one more thing: how does one set the Priha page > directory? I'm pretty sure there's a setting in priha.properties that > needs to be set, but I don't know what it is. > > Andrew > --00151750d9d48f869e0472eb75c7--