Coder Social home page Coder Social logo

Log4j config in xebium jar about xebium HOT 16 CLOSED

xebia avatar xebia commented on September 15, 2024
Log4j config in xebium jar

from xebium.

Comments (16)

amolenaar avatar amolenaar commented on September 15, 2024

Fixed. The file was not even used.

from xebium.

amolenaar avatar amolenaar commented on September 15, 2024

One thing: The SeleniumDriverFixture currently has a static "BasicConfigurator.configure()" statement.

I suppose both Xebium and SUT are not executed in the same JVM?

from xebium.

bvklingeren avatar bvklingeren commented on September 15, 2024

They sometimes are executed in the same JVM. We have some mixed tests where our Fitnesse fixtures are executing some tasks that are usually executed by a scheduler and we use Xebium to see if the results are visible.
But our software has it's own logging configuration. so I would not expect that the SeleniumDriverFixture to start up its own loggers. Maybe we should kill/enhance that feature?

from xebium.

barend avatar barend commented on September 15, 2024

Xebium is a plugin, not a stand-alone app. It should therefore not change anything at all in the logging configuration IMO.

from xebium.

amolenaar avatar amolenaar commented on September 15, 2024

Agreed, but if log4j is not given some sort of configuration, you'll end up having only a

log4j:WARN No appenders could be found for logger (org.apache.http.impl.conn.SingleClientConnManager).
log4j:WARN Please initialize the log4j system properly.

message in the log output. What would be wise? Use slf4j or something? Create a fixture call to set up logging (Yuk!)?

from xebium.

bvklingeren avatar bvklingeren commented on September 15, 2024

I would indeed migrate to slf4j in the first place so users can decide
for themselves what kind of logger they are using. Let's see how
things are if that's done.

2011/5/27 amolenaar
[email protected]:

Agreed, but if log4j is not given some sort of configuration, you'll end up having only a

   log4j:WARN No appenders could be found for logger (org.apache.http.impl.conn.SingleClientConnManager).
   log4j:WARN Please initialize the log4j system properly.

message in the log output. What would be wise? Use slf4j or something?

Reply to this email directly or view it on GitHub:
#13 (comment)

from xebium.

barend avatar barend commented on September 15, 2024

Sticking with Log4J, you could use LogManager.exists("com.xebia...") to see if a logger is configured and run the BasicConfigurator only of there is none.

from xebium.

barend avatar barend commented on September 15, 2024

I'd use whatever Fitnesse uses. Blend into the host environment.

bvklingeren

I would indeed migrate to slf4j

from xebium.

amolenaar avatar amolenaar commented on September 15, 2024

System.out?

Dunno, the driver is not using anything AFAICT.

Just checked and it works nice with slf4j and slf4j-simple.

from xebium.

amolenaar avatar amolenaar commented on September 15, 2024

Committed. Please try.

from xebium.

bvklingeren avatar bvklingeren commented on September 15, 2024

thanks dude, we'll do

2011/5/27 amolenaar
[email protected]:

Committed. Please try.

Reply to this email directly or view it on GitHub:
#13 (comment)

from xebium.

amolenaar avatar amolenaar commented on September 15, 2024

If this works okay now we can do a release.

from xebium.

bvklingeren avatar bvklingeren commented on September 15, 2024

Unfortunately I can't test it without a lot of hassle, but I take your
word on it that it works. Go and make the release and we'll test it in
real life (we only support release builds)

Cheers,
Boudewijn

2011/5/30 amolenaar
[email protected]:

If this works okay now we can do a release.

Reply to this email directly or view it on GitHub:
#13 (comment)

from xebium.

amolenaar avatar amolenaar commented on September 15, 2024

I'll close this issue, unless you still face troubles.

from xebium.

bvklingeren avatar bvklingeren commented on September 15, 2024

Sorry for the late reply, but the configuration works correctly. Only one remark: please change the scope of the slf4j-simple.jar to test, because it's an implementation wich should be provided by the user, not Xebium.

Cheers,
Boudewijn

from xebium.

amolenaar avatar amolenaar commented on September 15, 2024

Done that. Check out 0.4 :)

from xebium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.