Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for relative logfile paths #678

Merged
merged 7 commits into from Oct 17, 2015
Merged

Add support for relative logfile paths #678

merged 7 commits into from Oct 17, 2015

Conversation

asbjornu
Copy link
Member

@asbjornu asbjornu commented Oct 8, 2015

This changes the handling of Arguments.LogFilePath such that it can be relative as well as absolute. It also improves what is logged to the console when the log file can't be created.

}

writeActions.Add(x => WriteLogEntry(arguments, x));
}
catch (Exception ex)
{
Console.WriteLine("Failed to configure logging: " + ex.Message);
Console.WriteLine("Failed to configure logging for '{0}': {1}", arguments.LogFilePath, ex.Message);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logger.WriteWarning would be better than using Console.WriteLine is it's possible?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, I just didn't want to do anything about that in this (old) part of the code.

@orjan
Copy link
Contributor

orjan commented Oct 13, 2015

@asbjornu there're 2 failing log related tests, would you mind fixing them?

@asbjornu
Copy link
Member Author

@orjan Yea, I noticed. Not sure why, but I reverted a change from 7aea8ec that should make the tests pass again.

JakeGinnivan added a commit that referenced this pull request Oct 17, 2015
@JakeGinnivan JakeGinnivan merged commit 4b40f63 into GitTools:master Oct 17, 2015
@asbjornu asbjornu deleted the feature/support-relative-logfile branch October 19, 2015 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants