Visitar URL original
Make logging to file optional using environment variable by tpetricek · Pull Request #377 · fsprojects/FSharp.Formatting · GitHub
Skip to content

Make logging to file optional using environment variable - #377

Merged
tpetricek merged 2 commits into
masterfrom
optional-logging
Jan 12, 2016
Merged

tpetricek merged 2 commits into
masterfrom
optional-logging

Conversation

@tpetricek

Copy link
Copy Markdown
Member

Following the discussion here: fssnippets/fssnip-website#32

I would prefer to keep the logging to a file optional. I added a new documentation page that explains how to enable this so that when people get an error, we can point them to the docs on how to get a detailed log :)

tpetricek added a commit that referenced this pull request Jan 12, 2016
Make logging to file optional using environment variable
@tpetricek
tpetricek merged commit 88aee75 into master Jan 12, 2016
@tpetricek
tpetricek deleted the optional-logging branch January 12, 2016 17:58
@tpetricek

Copy link
Copy Markdown
Member Author

@matthid I know you would have preferred the logging to be on by default - this was causing me some troubles in deploying a new version of fssnip.net to Azure, so I decided to go this way. I think it is a sensible default, but the idea with adding two load scripts would work too, so feel free to do that if you think it is worth it.

The doc page is now live: http://tpetricek.github.io/FSharp.Formatting/diagnostics.html

@matthid

matthid commented Jan 12, 2016

Copy link
Copy Markdown
Member

Yes I prefered an opt-out but I don't think it's important enough to have two load scripts. The docs are really clear so I'll just enable the flag in my builds :)

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.

2 participants