mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-25 14:15:02 +00:00
feat: Add logging configuration to ServiceBasedApp and initialize SDL video subsystem correctly
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user