FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(log): add logging library using `spdlog` by Miou-zora · Pull Request #56 · EngineSquared/EngineSquared · GitHub

feat(log): add logging library using spdlog - #56

Merged
ripel2 merged 19 commits into
mainfrom
49-add-logging-possibility
Nov 14, 2024
Merged

feat(log): add logging library using spdlog#56
ripel2 merged 19 commits into
mainfrom
49-add-logging-possibility

Conversation

Miou-zora commented Nov 12, 2024
edited
Loading

Copy link
Copy Markdown
Contributor

I choose spdlog for a logging library because it's the most common logging lib used for game engine and it looks perfect for our needs.

So I've swited all std::cout and std::cerr of this project for logging functions that you can see in Logger.hpp.

I also added a new utility namespace for strings.

All game engine I know that use spdlog: SupernovaEngine, RendererEngine, ElvenEngine, ezEngine, other game engine uses customs logger or don't provide infos about it.

Miou-zora self-assigned this Nov 12, 2024
Miou-zora linked an issue Nov 12, 2024 that may be closed by this pull request
Miou-zora requested a review from a team November 12, 2024 02:52
Miou-zora added the enhancement New feature or request label Nov 12, 2024
Comment thread src/plugin/log/src/Logger.hpp Outdated
Comment thread src/plugin/utils/tests/StringTest.cpp Outdated
Comment thread src/plugin/utils/src/String.hpp Outdated
Comment thread src/plugin/log/.gitignore Outdated
Comment thread src/plugin/log/src/Logger.cpp Outdated
MasterLaplace marked this pull request as draft November 13, 2024 19:29
Miou-zora requested review from MasterLaplace and ripel2 and removed request for MasterLaplace and ripel2 November 14, 2024 08:44
Miou-zora requested review from a team, MasterLaplace and ripel2 and removed request for a team November 14, 2024 08:44
MasterLaplace marked this pull request as ready for review November 14, 2024 08:45
ripel2 merged commit 7927d9c into main Nov 14, 2024
ripel2 deleted the 49-add-logging-possibility branch November 14, 2024 14:46
MasterLaplace pushed a commit that referenced this pull request Dec 6, 2024
I choose [`spdlog`](https://github.com/gabime/spdlog) for a logging
library because it's the most common logging lib used for game engine
and it looks perfect for our needs.

So I've swited all std::cout and std::cerr of this project for logging
functions that you can see in `Logger.hpp`.

I also added a new utility namespace for strings.

All game engine I know that use `spdlog`:
[SupernovaEngine](https://github.com/skaarj1989/SupernovaEngine),
[RendererEngine](https://github.com/JeanPhilippeKernel/RendererEngine),
[ElvenEngine](https://github.com/denyskryvytskyi/ElvenEngine),
[ezEngine](https://github.com/ezEngine/ezEngine), other game engine uses
customs logger or don't provide infos about it.

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Lucas Hauszler <70372762+ripel2@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add logging possibility

3 participants


Back | FazBrowse Home | New Git URL