trace

Logging best practices [closed]

怎甘沉沦 提交于 2019-11-26 01:55:01
问题 I\'d like to get stories on how people are handling tracing and logging in real applications. Here are some questions that might help to explain your answer. Frameworks What frameworks do you use? log4net System.Diagnostics.Trace System.Diagnostics.TraceSource Logging application block Other? If you use tracing, do you make use of Trace.Correlation.StartLogicalOperation? Do you write this code manually, or do you use some form of aspect oriented programming to do it? Care to share a code

How can I debug git/git-shell related problems?

妖精的绣舞 提交于 2019-11-26 01:05:54
问题 How can I have some debug information regarding git/git-shell? I had a problem, that user1 could clone a repository without problem, while user2 could clone only an empty one. I had set GIT_TRACE=1 , but nothing useful was told. Finally, after a long trial and error, it turned out that it was a permission problem on a file. An appropriate error message could short-circuit this problem. 回答1: For even more verbose output use following: GIT_CURL_VERBOSE=1 GIT_TRACE=1 git pull origin master 回答2: