Skip to content

[WIP] introduce file logging - #833

Closed
shiftkey wants to merge 20 commits into
masterfrom
log-all-the-things
Closed

shiftkey wants to merge 20 commits into
masterfrom
log-all-the-things

Conversation

@shiftkey

@shiftkey shiftkey commented Jan 20, 2017 •

Copy link
Copy Markdown
Member

Fixes #153

This is inspired by much of the work that the existing Windows app does:

  • log debug/info/error messages generated in app to a temporary file
  • remove the dependency on users needing to poke at DevTools when something happens
  • users should not need to reproduce issue - log should have enough information
  • roll these files periodically (weekly?) so that only recent information is logged

TODO:

  • get format right
  • port over some console.error and console.log usages to demonstrate
  • get tests working with __DEV__ global
  • included console logger doesn't write to devtools console - add own component
  • understand what change has impacted integration tests
  • verify shared process logging also ends up here
  • when error reported in dev mode, show devtools if hidden
  • ???

@shiftkey shiftkey changed the title introduce file logging [WIP] introduce file logging Jan 23, 2017
@shiftkey

Copy link
Copy Markdown
Member Author

Now that I've made a bunch of learnings on this with #849, I'm going to close this out in favour of a narrower PR to just catch unhandled exceptions - and then I'll start porting over our existing logging messages afterwards.

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.

1 participant