Log4j initializes very early (use -Dlog4j.debug).
It must be initialised before calling any Jena code except Log.setLog4j
(and that looks for file "log4j.properties", nothing else).
Use -Dlog4j.configuration
(Jena 2.10 is 5 years old)
Andy
On 29/05/18 22:07, javed khan wrote:
I have already imported Jena-4jlog.properties, but still it gives the error.
^^^^^^^^^^^^^^^^^^^^^
What does "import" mean?
What's that?
On Tue, May 29, 2018 at 9:56 PM, Andy Seaborne <[email protected]> wrote:
On 29/05/18 20:29, javed khan wrote:
Hello
I have installed and importe Jena 2.10. When I run my program, it gives me
the error:
WARN No appenders could be found for logger
(com.hp.hpl.jena.sparql.mgt.ARQMgt).
log4j:WARN Please initialize the log4j system properly.
I have included the "properties" file with the following code, but still
it
gives me the error.
The message means log4j1 can't find a logging setup.
Add the appropriate "-Dlog4j.configuration=file:..." to the java
invocation.
Add "-Dlog4j.debug" to debug.
See the log4j documentation.
Andy
log4j.rootLogger=INFO, stdout
# Direct log messages to stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss}
%-5p
%c{1}:%L - %m%n