Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Logging in Scout Framework
Logging in Scout Framework [message #534472] Wed, 19 May 2010 10:06 Go to next message
Stephan Leicht Vogt is currently offline Stephan Leicht VogtFriend
Messages: 102
Registered: February 2010
Location: Baden Switzerland
Senior Member


Logging-Facade[ 4 votes ]
1.Apache Commons Logging 0 / 0%
2.Simple Logging Facade for Java (SLF4J) 4 / 100%

Until now we use for logging our own logging-facade which is very similar to Apache Commons or SLF4j.

We'd like to remove this dupplication of functionality and move to a widely used logging-facade.

Has the eclipse community a favorite? Is the use of one preferred?

Thanks for your insights.

Greetings
Stephan
Re: Logging in Scout Framework [message #534500 is a reply to message #534472] Wed, 19 May 2010 11:31 Go to previous messageGo to next message
Arthur vD is currently offline Arthur vDFriend
Messages: 51
Registered: March 2010
Member
I assume the question is only about what the Scout using developer get to use when writing Scout code. How does it look like in the backend where the log entries from various third party libraries come together? I not so fondly remember an OSGi project where I've ended up with a dozen logging libraries (a few with org.osgi.service.log.LogService/LogListener implementations, most without) which all had to be consolidated.

Kind regards

Arthur
Re: Logging in Scout Framework [message #534506 is a reply to message #534500] Wed, 19 May 2010 11:42 Go to previous messageGo to next message
Stephan Leicht Vogt is currently offline Stephan Leicht VogtFriend
Messages: 102
Registered: February 2010
Location: Baden Switzerland
Senior Member

Well, yes and no. We would like to implement/use a logging facade that also simplifies your problem with dozens of logging libraries.
AFAIK SLF4j gives you the possibility to easily create wrappers over all logging implementations so every project will log over SLF4j and then into the logging framework of your choice (log4j/logback/jdk-logger...). Described in detail here: http://www.slf4j.org/legacy.html

Arthur, would that solve your past problems?

Greetings
Stephan
Re: Logging in Scout Framework [message #534509 is a reply to message #534506] Wed, 19 May 2010 11:53 Go to previous messageGo to next message
Arthur vD is currently offline Arthur vDFriend
Messages: 51
Registered: March 2010
Member
I assume so. Back then I went with an OSGi-logService based solution gathering and converting all other logging messages. In hindsight SLF4J did look like the less painful solution, but as all was running sufficiently well I didn't try switching over ot SLF4J.

Regards
Arthur
Re: Logging in Scout Framework [message #535402 is a reply to message #534506] Sun, 23 May 2010 08:03 Go to previous message
Werner Keil is currently offline Werner KeilFriend
Messages: 1083
Registered: July 2009
Senior Member
A large Eclipse RCP project I was involved in used SLF4J as facade for
LogBack, too.
They even developed distributed logging based on Apache Mina. I cannot tell
if they're able to share or open-source any of this under e.g. Scout, but I
told them already your effort looks in many aspects worth participating.

If they won't be willing or able to help, I'll meet at least one leading
Mina contributor again next month at epicenter conference.

Werner
Re: Logging in Scout Framework [message #581229 is a reply to message #534506] Sun, 23 May 2010 08:03 Go to previous message
Werner Keil is currently offline Werner KeilFriend
Messages: 1083
Registered: July 2009
Senior Member
A large Eclipse RCP project I was involved in used SLF4J as facade for
LogBack, too.
They even developed distributed logging based on Apache Mina. I cannot tell
if they're able to share or open-source any of this under e.g. Scout, but I
told them already your effort looks in many aspects worth participating.

If they won't be willing or able to help, I'll meet at least one leading
Mina contributor again next month at epicenter conference.

Werner
Previous Topic:Coloring of tabs in AbstractTabBoxes
Next Topic:Proposal Feedback
Goto Forum:
  


Current Time: Sat Dec 20 01:02:44 GMT 2014

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

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