Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Disable eGit Logging output(how to disable the logging output of egit for other plugin developers)
Disable eGit Logging output [message #1828860] Sat, 20 June 2020 07:47 Go to next message
Jan Richter is currently offline Jan RichterFriend
Messages: 1
Registered: June 2020
Junior Member
Hello,
can you make me a pleasure and please deactivate the egit logging then distributed.

Or please tell me how to deactivate the logging output of egit.

I'm a plugin developer, too, and then I develop my plugin 99% of the logging output comes from egit and only 1% of the logging output is generated from my plugin during development time.

I have also to reformat my logging output to find my log messages in the console.

As you can see in the attached file, your log level is set to DEBUG.

Best Regards
Jan
  • Attachment: console.log
    (Size: 464.11KB, Downloaded 40 times)
Re: Disable eGit Logging output [message #1828877 is a reply to message #1828860] Sat, 20 June 2020 19:34 Go to previous messageGo to next message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 374
Registered: August 2016
Senior Member
EGit logs via the Eclipse logging framework. What you see is the logging from JGit. JGit does not set the logging level; this is set in your logging configuration. Perhaps you have a root logger set to debug?
Re: Disable eGit Logging output [message #1829013 is a reply to message #1828877] Tue, 23 June 2020 23:28 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1177
Registered: July 2009
Senior Member
JGit uses the slf4j logging API but doesn't install a logging implementation on its own.
Change configuration of the logging implementation you use and set severity for loggers org.eclipse.jgit.* to the level you are interested in.
Re: Disable eGit Logging output [message #1829014 is a reply to message #1829013] Tue, 23 June 2020 23:30 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1177
Registered: July 2009
Senior Member
e.g. for log4j:

log4j.appender.stderr=org.apache.log4j.ConsoleAppender
log4j.appender.stderr.Target=System.err
log4j.appender.stderr.layout=org.apache.log4j.PatternLayout
log4j.appender.stderr.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
# root logger for jgit
log4j.logger.org.eclipse.jgit = ERROR
Re: Disable eGit Logging output [message #1834416 is a reply to message #1829014] Tue, 10 November 2020 02:49 Go to previous messageGo to next message
Sunneo IceCold is currently offline Sunneo IceColdFriend
Messages: 1
Registered: February 2020
Junior Member
which file to configure ?
Re: Disable eGit Logging output [message #1834535 is a reply to message #1834416] Thu, 12 November 2020 01:13 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1177
Registered: July 2009
Senior Member
for log4j configuration see https://logging.apache.org/log4j/1.2/manual.html
Previous Topic:Default Branch Name
Next Topic:GIT Versions supported
Goto Forum:
  


Current Time: Sun Jun 20 05:13:04 GMT 2021

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

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

Back to the top