Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Does the efxclipse logger façade honour configuration files... ?
Does the efxclipse logger façade honour configuration files... ? [message #1678829] Mon, 16 March 2015 10:57 Go to next message
Thomas Elskens is currently offline Thomas ElskensFriend
Messages: 159
Registered: September 2014
Location: Brussels - Belgium
Senior Member
Hello,

I'm using the logger façade provided by efxclipse with log4j and I was trying to set the standard message level to trace. This, however, does not work, only messages having level info or above are printed.

The simplified configuration (hosted by a plugin fragment appended to org.apache.log4j) looks like this :

<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="ALL">
  <Appenders>
    <Console name="Console" target="SYSTEM_OUT">
      <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
    </Console>
  </Appenders>
  <Loggers>
    <Root level="trace">
      <AppenderRef ref="Console"/>
    </Root>
  </Loggers>
</Configuration>


This is all standard, except for the status="ALL" and the Root level="trace".

So before I start looking for (more or less) subtle problems, I just wanted to make sure the efxclipse façade doesn't put any particular constraints on the use of log4j configuration files?

Thanks in advance for the clarification,

Thomas Elskens
Re: Does the efxclipse logger faade honour configuration files... ? [message #1678857 is a reply to message #1678829] Mon, 16 March 2015 11:15 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

No we are NOT defining in any default configuration! Where did you put
your log4j-File?

To make log4j to pick it up you need to put it into a fragment who has
org.apache.log4jn as its host. I always planned to provide a way to
configuring log4j through an OSGi-Service but I've not yet had time to
work on this.

Tom

On 16.03.15 11:57, Thomas Elskens wrote:
> Hello,
>
> I'm using the logger façade provided by efxclipse with log4j and I was
> trying to set the standard message level to trace. This, however, does
> not work, only messages having level info or above are printed.
> The simplified configuration (hosted by a plugin fragment appended to
> org.apache.log4j) looks like this :
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <Configuration status="ALL">
> <Appenders>
> <Console name="Console" target="SYSTEM_OUT">
> <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36}
> - %msg%n"/>
> </Console>
> </Appenders>
> <Loggers>
> <Root level="trace">
> <AppenderRef ref="Console"/>
> </Root>
> </Loggers>
> </Configuration>
>
>
> This is all standard, except for the status="ALL" and the Root
> level="trace".
> So before I start looking for (more or less) subtle problems, I just
> wanted to make sure the efxclipse façade doesn't put any particular
> constraints on the use of log4j configuration files?
> Thanks in advance for the clarification,
>
> Thomas Elskens
Re: Does the efxclipse logger faade honour configuration files... ? [message #1679065 is a reply to message #1678857] Mon, 16 March 2015 13:01 Go to previous message
Thomas Elskens is currently offline Thomas ElskensFriend
Messages: 159
Registered: September 2014
Location: Brussels - Belgium
Senior Member
Oups I stupidly misread the instructions for using log4j: instead of adding org.eclipse.fx.core.log4j to my feature, I specified org.apache.log4j, causing the façade to revert to the default java.util.logging.Logger.

Problem solved.

Sorry for bothering,

Thomas
Previous Topic:I have installed the most recent e(fx)clipse AinO packages and it gives me this errors
Next Topic:e4 Tools and efxclipse?
Goto Forum:
  


Current Time: Thu Mar 28 16:14:47 GMT 2024

Powered by FUDForum. Page generated in 0.05816 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top