On 02/07/15 12:51, Rob Vesse wrote:
I assume you mean 2.13.0? Both the release numbers you mention are years
out of date and pre-date the existence of Fuseki
There is no output at the INFO level as noted in the documentation:
http://jena.apache.org/documentation/query/logging.html
"ARQ does not output any logging messages at level INFO in normal
operation. The code uses level TRACE and DEBUG. Running with logging set
to an application at INFO will cause no output in normal operation. Output
below INFO can be very verbose and is intended mainly to help debug ARQ.
WARN and FATAL messages are only used when something is wrong"
I.e. you will need to set this to DEBUG/TRACE if you want any additional
output
Rob
For execution logging you also need:
ARQ.setExecutionLogging(Explain.InfoLevel.ALL) ;
which can be done in the
--set arq:logExec=info
globally or on a specific dataset by setting the context
ja:context [ ja:cxtName "arq:logExec" ; ja:cxtValue "info" ] ;
("info" etc does not directly relate to logging level)
Andy
On 01/07/2015 11:51, "Eugene Siow" <[email protected]> wrote:
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 <[email protected]> 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" <[email protected]> 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!