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

Raw logs on the SDL build #18983

Open
2 tasks done
Nemoumbra opened this issue Apr 3, 2024 · 0 comments
Open
2 tasks done

Raw logs on the SDL build #18983

Nemoumbra opened this issue Apr 3, 2024 · 0 comments

Comments

@Nemoumbra
Copy link
Contributor

What should happen

The SDL build is rather raw itself compared to Windows and there are some very obvious differences.

  1. The logging system is not used during startup and shutdown or even a few times in between (for example, the gamecontrollerdb-related logs). There are also walls of printfed text like this one:

image

  1. Sometimes the logs are correctly emitted, like in VFS::Register, but the logging manager is not initialized yet => the same outcome.

Who would this benefit

There are multiple things that need to be changed. Most likely the logging manager has to be initialized as soon as possible, then the printf-ing code needs to be rewritten by using the INFO_LOG/DEBUG_LOG, etc. The more control we have over the logs, the better... And right now a lot of raw logs are printed. They are also not redirected to the file loggers or webserver loggers and only appear in the console.

Platform (if relevant)

Linux / BSD

Games this would be useful in

Not game-specific.

Other emulators or software with a similar feature

No response

Checklist

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

No branches or pull requests

1 participant