feat: Add logging configuration to ServiceBasedApp and initialize SDL video subsystem correctly

This commit is contained in:
2026-01-05 03:34:25 +00:00
parent f5be339aab
commit 4ec64c1666
4 changed files with 25 additions and 15 deletions

View File

@@ -46,11 +46,10 @@ int main(int argc, char** argv) {
sdl3cpp::services::impl::CommandLineService commandLineService(startupLogger, platformService);
sdl3cpp::services::CommandLineOptions options = commandLineService.Parse(argc, argv);
sdl3cpp::app::ServiceBasedApp app(options.runtimeConfig);
sdl3cpp::services::LogLevel logLevel = options.traceEnabled
? sdl3cpp::services::LogLevel::TRACE
: sdl3cpp::services::LogLevel::INFO;
sdl3cpp::app::ServiceBasedApp app(options.runtimeConfig, logLevel);
app.ConfigureLogging(logLevel, true, "sdl3_app.log");
auto logger = app.GetLogger();