Skip to content

Feature/spdlog logger #18

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

Open
wants to merge 66 commits into
base: master
Choose a base branch
from
Open

Feature/spdlog logger #18

wants to merge 66 commits into from

Conversation

Lord-Kamina
Copy link
Owner

What does this PR do?

Closes Issue(s)

Motivation

More

  • Added/updated documentation

Additional Notes

And wrap it inside a class for easy initialization/making sure all loggers are initialized if anyone wants to add a new subsystem down the line.
Keeping it as a separate class for now. Will replace Logger when I’m doing working.
I don’t think this was actually being a problem, but it was also a circular dependency.
MSVC complaining about duplicate symbol.
…and nuke the useless constructor.
@Lord-Kamina Lord-Kamina force-pushed the feature/spdlog-logger branch from bd9d371 to ff45d96 Compare January 14, 2025 12:46
Copy link

github-actions bot commented Jan 14, 2025

Download the artifacts for this pull request:

This service is provided by nightly.link. These artifacts will expire in 90 days and will not be available for download after that time.

@Lord-Kamina Lord-Kamina force-pushed the feature/spdlog-logger branch 2 times, most recently from 61a625c to 5d465b5 Compare January 14, 2025 16:07
Several stray files with CRLF endings.
Begin the try block after initializing the logger, so we can use the logger to report exceptions to the console and log file.
In practice, it’s very unlikely this error will ever trigger but sure, let’s make the code analysis happy.
Windows macros strike again!

This error in particular is pretty insidious and not very easy to diagnose.

Instead of dumb work-arounds, I’m opting to just change the name of these to avoid collisions with macros.

- `Song::LoadStatus::ERROR` —> `Song::LoadStatus::PARSERERROR`.
- `far —> `farDistance`
- `near` —> `nearDistance`

That say, we don’t need to worry about if or when a third-party library does `#include <Windows.h>`
A lot of users think this is an important error, and no doubt that would be amplified by printing it in bold with a red background.
@Lord-Kamina Lord-Kamina force-pushed the feature/spdlog-logger branch from 5d465b5 to a6eed49 Compare January 15, 2025 17:29
@Lord-Kamina Lord-Kamina force-pushed the feature/spdlog-logger branch 3 times, most recently from 9de7f72 to 35d0bdc Compare January 17, 2025 20:00
@Lord-Kamina Lord-Kamina force-pushed the feature/spdlog-logger branch from 35d0bdc to f7ada10 Compare January 18, 2025 23:34
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