You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Eugene Siow <ky...@gmail.com> on 2015/07/01 11:46:28 UTC

Fuskeki ARQ Execution Logging

I'm trying to enable ARQ logging on my fuseki2 server.

I have added the following lines to my log4j.properties file in my
FUSEKI_BASE directory (/run/):
log4j.logger.org.apache.jena.arq.info=INFO
log4j.logger.org.apache.jena.arq.exec=INFO

Fuseki is using the log4j.properties file as I can make changes to other
properties like console appending, etc. However, when I issue queries, I
don't seem to get any additional ARQ execution logging.

I am using a log4j.properties modified from this one:
https://github.com/apache/jena/blob/master/jena-fuseki2/jena-fuseki-core/src/main/resources/org/apache/jena/fuseki/log4j.properties

This page: https://jena.apache.org/documentation/query/logging.html
says that 'A Fuseki
<https://jena.apache.org/documentation/serving/data/index.html> server
output can include ARQ execution logging
<https://jena.apache.org/documentation/query/explain.html>.'

So I'm wondering what I'm doing wrong?

Thanks!

Re: Fuskeki ARQ Execution Logging

Posted by Eugene Siow <ky...@gmail.com>.
Hi Rob,

Thanks for the reply. I apologise that I forgot to include the version.
I have tried with 2.0 and a 2.3.0 snapshot (Jun 28).

This is my log4j.properties:

# Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0

# Plain output to stdout
log4j.appender.jena.plainstdout=org.apache.log4j.ConsoleAppender
log4j.appender.jena.plainstdout.target=System.out
log4j.appender.jena.plainstdout.layout=org.apache.log4j.PatternLayout
log4j.appender.jena.plainstdout.layout.ConversionPattern=[%d{yyyy-MM-dd
HH:mm:ss}] %-10c{1} %-5p %m%n
## %d{ISO8601} -- includes "ss,sss"
## log4j.appender.jena.plainstdout.layout.ConversionPattern=[%d{ISO8601}]
%-10c{1} %-5p %m%n

# Unadorned, for the NCSA requests log.
log4j.appender.fuseki.plain=org.apache.log4j.ConsoleAppender
log4j.appender.fuseki.plain.target=System.out
log4j.appender.fuseki.plain.layout=org.apache.log4j.PatternLayout
log4j.appender.fuseki.plain.layout.ConversionPattern=%m%n

log4j.rootLogger=INFO, jena.plainstdout
log4j.logger.org.apache.jena=WARN
log4j.logger.org.apache.jena=WARN
log4j.logger.org.apache.jena.fuseki=INFO

# Others
log4j.logger.org.eclipse.jetty=WARN
log4j.logger.org.apache.shiro=WARN

# Execution logging
*log4j.logger.com.hp.hpl.jena.arq.info
<http://log4j.logger.com.hp.hpl.jena.arq.info>=INFO*
*log4j.logger.com.hp.hpl.jena.arq.exec=INFO*

# Fuseki System logs.
log4j.logger.org.apache.jena.fuseki.Server=INFO
log4j.logger.org.apache.jena.fuseki.Fuseki=INFO
log4j.logger.org.apache.jena.fuseki.Admin=INFO
log4j.logger.org.apache.jena.fuseki.Validate=INFO
log4j.logger.org.apache.jena.fuseki.Config=INFO

# NCSA Request log.
log4j.additivity.org.apache.jena.fuseki.Request=false
log4j.logger.org.apache.jena.fuseki.Request=OFF, fuseki.plain

# TDB
log4j.logger.org.apache.jena.tdb.loader=INFO
## Parser output
log4j.additivity.org.apache.jena.riot=true
log4j.logger.org.apache.jena.riot=INFO, jena.plainstdout

Unfortunately it still doesn't work.

Eugene

On Wed, Jul 1, 2015 at 11:43 AM, Rob Vesse <rv...@dotnetrdf.org> wrote:

> What version of Fuseki is this?
>
> If you are using a stable release build then the 2.x package names still
> apply
>
> So replace org.apache with com.hp.hpl
>
> The log4j properties file in trunk represents the new 3.x package names
> for the as yet unreleased Jena 3
>
> Rob
>
> On 01/07/2015 10:46, "Eugene Siow" <ky...@gmail.com> wrote:
>
> >I'm trying to enable ARQ logging on my fuseki2 server.
> >
> >I have added the following lines to my log4j.properties file in my
> >FUSEKI_BASE directory (/run/):
> >log4j.logger.org.apache.jena.arq.info=INFO
> >log4j.logger.org.apache.jena.arq.exec=INFO
> >
> >Fuseki is using the log4j.properties file as I can make changes to other
> >properties like console appending, etc. However, when I issue queries, I
> >don't seem to get any additional ARQ execution logging.
> >
> >I am using a log4j.properties modified from this one:
> >
> https://github.com/apache/jena/blob/master/jena-fuseki2/jena-fuseki-core/s
> >rc/main/resources/org/apache/jena/fuseki/log4j.properties
> >
> >This page: https://jena.apache.org/documentation/query/logging.html
> >says that 'A Fuseki
> ><https://jena.apache.org/documentation/serving/data/index.html> server
> >output can include ARQ execution logging
> ><https://jena.apache.org/documentation/query/explain.html>.'
> >
> >So I'm wondering what I'm doing wrong?
> >
> >Thanks!
>
>
>
>
>

Re: Fuskeki ARQ Execution Logging

Posted by Rob Vesse <rv...@dotnetrdf.org>.
What version of Fuseki is this?

If you are using a stable release build then the 2.x package names still
apply

So replace org.apache with com.hp.hpl

The log4j properties file in trunk represents the new 3.x package names
for the as yet unreleased Jena 3

Rob

On 01/07/2015 10:46, "Eugene Siow" <ky...@gmail.com> wrote:

>I'm trying to enable ARQ logging on my fuseki2 server.
>
>I have added the following lines to my log4j.properties file in my
>FUSEKI_BASE directory (/run/):
>log4j.logger.org.apache.jena.arq.info=INFO
>log4j.logger.org.apache.jena.arq.exec=INFO
>
>Fuseki is using the log4j.properties file as I can make changes to other
>properties like console appending, etc. However, when I issue queries, I
>don't seem to get any additional ARQ execution logging.
>
>I am using a log4j.properties modified from this one:
>https://github.com/apache/jena/blob/master/jena-fuseki2/jena-fuseki-core/s
>rc/main/resources/org/apache/jena/fuseki/log4j.properties
>
>This page: https://jena.apache.org/documentation/query/logging.html
>says that 'A Fuseki
><https://jena.apache.org/documentation/serving/data/index.html> server
>output can include ARQ execution logging
><https://jena.apache.org/documentation/query/explain.html>.'
>
>So I'm wondering what I'm doing wrong?
>
>Thanks!