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

Implementation of console logging & Project Restructure #233

Merged
merged 12 commits into from
Oct 24, 2023
Merged

Conversation

Founntain
Copy link
Owner

@Founntain Founntain commented Oct 20, 2023

This PR implements a basic logging service, that provides us with the ability to log to the console. Also every service now prints it's status when de-/initializing.

  • I moved all Services to it's own project as it fits the structure better, and would also give us the ability to use the services in other projects. (if we ever need that)
  • I also changed the naming of our Services. Services always ended with Provider. Those aren't providers in my opinion. Those are Services. For example. OsuSongSourceProvider => OsuSongSourceService

    i tried OsuSongSourceServiceProvider but that felt wrong as well

@Founntain Founntain added documentation Improvements or additions to documentation enhancement New feature or request refactor Pull request that refactors the code labels Oct 20, 2023
@Founntain Founntain requested a review from Cesan October 23, 2023 12:07
… logging

# Conflicts:
#	OsuPlayer.Data/DataModels/DbMapEntryBase.cs
#	OsuPlayer.Data/DataModels/IDbReaderFactory.cs
#	OsuPlayer.IO/DbReader/OsuDbReader.cs
#	OsuPlayer.IO/DbReader/RealmReader.cs
#	OsuPlayer.Interfaces/OsuPlayer.Interfaces.csproj
#	OsuPlayer.Services/OsuPlayer.Services.csproj
@Founntain
Copy link
Owner Author

This PR also includes a huge overhaul of the project structure.

The key problem was, that it wasn't possible to call services in a variety of projects. Mostly IO or Network. This was and would be a big hindrance in the future, as for example it wouldn't be possible to call the LoggingService in IO or Network. This is now possible as @Cesan and I restructured the project. There is a new Interface project that helps us telling other projects what service exist and what they can do. Which in the end gives us the ability to call these services in the IO or Network project.

The reference Hierarchy was as followed:

Now it is as followed:

@Founntain Founntain marked this pull request as ready for review October 23, 2023 16:51
@Founntain Founntain removed the request for review from Cesan October 23, 2023 16:51
@Founntain Founntain changed the title Implementation of console logging Implementation of console logging & Project Restructure Oct 23, 2023
@Founntain Founntain merged commit ed389b2 into master Oct 24, 2023
4 checks passed
@Founntain Founntain deleted the logging branch October 24, 2023 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request refactor Pull request that refactors the code
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants