Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » JGit Logging in Eclipse(More visibility into what Git is doing)
JGit Logging in Eclipse [message #661672] Fri, 25 March 2011 23:33 Go to next message
Alexi  is currently offline Alexi Friend
Messages: 3
Registered: March 2011
Junior Member
One thing that makes EGit/JGit more difficult than Subclicpse is that EGit/JGit does not provide enough visibility into what Git commands are actually being invoked (Subclipse displays this info clearly on the Eclipse console). Is there any way to enable some kind of JGit command logging so that I can see what Git commands are actually invoked when I do things like Eclipse->Project->Team->PushToUpstream etc...?
Re: JGit Logging in Eclipse [message #661697 is a reply to message #661672] Sat, 26 March 2011 11:11 Go to previous messageGo to next message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
On 2011-03-26 00.33, Alexi wrote:
> One thing that makes EGit/JGit more difficult than Subclicpse is that
> EGit/JGit does not provide enough visibility into what Git commands are
> actually being invoked (Subclipse displays this info clearly on the
> Eclipse console). Is there any way to enable some kind of JGit command
> logging so that I can see what Git commands are actually invoked when I
> do things like Eclipse->Project->Team->PushToUpstream etc...?

JGit does not invoke git commands, it does all work itself, except
on remote servers.

Having detailed, easy-to-read and consistent logging about what it does
could be useful. JGit does not do that. In EGit there is more logging,
but its not very pretty.

One thing to do is to decide on what logging library to use. Using slf4j
seems fashionable. It redirects to whatever logging library the JGit
consumer (EGit, Gerrit, Ant, Maven etc) is using.

Patches welcome.

-- robin
Re: JGit Logging in Eclipse [message #661698 is a reply to message #661672] Sat, 26 March 2011 11:12 Go to previous messageGo to next message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
On 2011-03-26 00.33, Alexi wrote:
> One thing that makes EGit/JGit more difficult than Subclicpse is that
> EGit/JGit does not provide enough visibility into what Git commands are
> actually being invoked (Subclipse displays this info clearly on the
> Eclipse console). Is there any way to enable some kind of JGit command
> logging so that I can see what Git commands are actually invoked when I
> do things like Eclipse->Project->Team->PushToUpstream etc...?

JGit does not invoke git commands, it does all work itself, except
on remote servers.

Having detailed, easy-to-read and consistent logging about what it does
could be useful. JGit does not do that. In EGit there is more logging,
but its not very pretty.

One thing to do is to decide on what logging library to use. Using slf4j
seems fashionable. It redirects to whatever logging library the JGit
consumer (EGit, Gerrit, Ant, Maven etc) is using.

Patches welcome.

-- robin
Re: JGit Logging in Eclipse [message #662030 is a reply to message #661698] Mon, 28 March 2011 23:29 Go to previous messageGo to next message
Alexi  is currently offline Alexi Friend
Messages: 3
Registered: March 2011
Junior Member
Perhaps some information is better then none. Where can I find the EGit logs?
Re: JGit Logging in Eclipse [message #987851 is a reply to message #662030] Wed, 28 November 2012 11:44 Go to previous messageGo to next message
Diego Bizmate is currently offline Diego BizmateFriend
Messages: 1
Registered: November 2012
Junior Member
Hi all

i am also interested in finding the location of Egit logs ...
I having a number of problems in the interface, like
- new files not being spotted with i run Team -> Commit, i need to add to index manually
- push command is always disabled
- merge command is always disabled

Logs would help me understanding what is gone wrong with my egit
Re: JGit Logging in Eclipse [message #991380 is a reply to message #987851] Tue, 18 December 2012 20:22 Go to previous message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
Diego Bizmate skrev 2012-11-28 16.53:
> Hi all
>
> i am also interested in finding the location of Egit logs ... I having a number of problems in the interface, like - new files not being spotted with i run Team -> Commit,
> i need to add to index manually
> - push command is always disabled
> - merge command is always disabled
>
> Logs would help me understanding what is gone wrong with my egit

The log is <WORKSPACE>/.metadata/.log. It is also available as the Error Log view.

As for the other issues I recently fixed a bug that just might lead to files not being
logged, though I didn't try to prove that, so please check out the nightly builds.

Push/Merge availability depends on the state of the branch. There may be different
opinions in where the commands should be disabled or not.

-- robin
Previous Topic:Effective Configuration properties display broken?
Next Topic:How to use Egit by code
Goto Forum:
  


Current Time: Tue Mar 19 11:13:50 GMT 2024

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

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

Back to the top