[Mulgara-dev] Query Logging

Alex Hall alexhall at revelytix.com
Sun May 13 18:02:21 UTC 2012


On Fri, May 11, 2012 at 1:57 PM, Paul Gearon <gearon at ieee.org> wrote:

> <snip>
>
> I know there is a logging system buried in Mulgara, but I’m not sure how
> to
> > tap into it.  Is there anywhere someone can point me that would give me a
> > start on how to turn it on and configure it?  I’m hoping for a simple
> primer
> > and then maybe contact the list once I know a little something about
> it.  I
> > scoured the wiki but either I missed it or I couldn’t find it.
>
> Logging never seemed to work the way I wanted it to, so I can't give
> you a definitive answer, sorry. However, it's supposedly set up using
> conf/log4j-mulgara.xml, so you can try modifying that.
>

If you're using the executable JAR file, it's set up by default to use a
copy of conf/log4j-mulgara.xml embedded in the JAR file. To modify the
logging configuration, save off a copy of that file somewhere and add its
location as a URL to the command line using the -l (that's lower-case "L")
flag, i.e.:

java -jar dist/mulgara-2.1.13.jar -l file:/path/to/log4j-mulgara.xml

You can then start mucking around with the Log4j configuration. I think a
good place to start might be enabling debug logging in
org.mulgara.resolver.DatabaseSession. IIRC, there's some gotcha where the
threshold on the logfile appender defaults to INFO so you have to bump that
up to DEBUG as well.

Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mulgara.org/pipermail/mulgara-dev/attachments/20120513/e89d4837/attachment.html>


More information about the Mulgara-dev mailing list