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

[Refactor] Logger #1667

Merged
merged 33 commits into from Sep 13, 2022
Merged

[Refactor] Logger #1667

merged 33 commits into from Sep 13, 2022

Conversation

Nocccer
Copy link
Collaborator

@Nocccer Nocccer commented Aug 5, 2022

Refactored logger

  • Able to pass objects, arrrays, numbers without making them a string to log functions ( logError, logInfo, ... )
  • Make paramters a option interface
  • Split logger and logfile functionality
  • Wrote tests for logger and logfile functions

Use the following Checklist if you have changed something on the Backend or Frontend:

  • Tested the feature and it's working on a current and clean install.
  • Tested the main App features and they are still working on a current and clean install. (Login, Install, Play, Uninstall, Move games, etc.)
  • Created / Updated Tests (If necessary)
  • Created / Updated documentation (If necessary)

@Nocccer Nocccer added the pr:wip WIP, don't merge. label Aug 5, 2022
@Nocccer Nocccer removed the pr:wip WIP, don't merge. label Aug 30, 2022
@Nocccer Nocccer added the pr:ready-for-review Feature-complete, ready for the grind! :P label Aug 30, 2022
Copy link
Collaborator

@CommandMC CommandMC left a comment

Choose a reason for hiding this comment

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

This is very close to being perfect, just got some questions/suggestions/ideas

src/backend/gog/setup.ts Outdated Show resolved Hide resolved
src/backend/logger/__tests__/logfile.test.ts Outdated Show resolved Hide resolved
src/backend/logger/__tests__/logfile.test.ts Show resolved Hide resolved
src/backend/logger/__tests__/logfile.test.ts Outdated Show resolved Hide resolved
src/backend/logger/__tests__/logfile.test.ts Outdated Show resolved Hide resolved
src/backend/logger/logger.ts Outdated Show resolved Hide resolved
src/backend/logger/logger.ts Outdated Show resolved Hide resolved
src/backend/logger/logger.ts Outdated Show resolved Hide resolved
src/backend/main.ts Outdated Show resolved Hide resolved
src/backend/utils.ts Show resolved Hide resolved
@Nocccer Nocccer merged commit 2667bc3 into beta Sep 13, 2022
@Nocccer Nocccer deleted the refactor/logger2 branch September 13, 2022 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:ready-for-review Feature-complete, ready for the grind! :P
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants