Skip to content

Conversation

@Gin890
Copy link
Collaborator

@Gin890 Gin890 commented Jan 20, 2026

The static global logger is now a FileLogger. The old GUI-dependent logger, FileWindowLogger is removed. Each LogWindow is connected directly to the global FileLogger.


static FileLoggerConfig _global_logger_config;

void initialize_global_logger(FileLoggerConfig config){
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to be careful here that nothing calls the logger during static init.

Alternatively, you can make the entire logger lazy static init.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How can you do that? The logger object is already lazy static init but it needs to be set with a proper logger config, which I can only implement in this PR by calling initialize_global_logger() at start of main() to initialize a static config struct before any logger calls.

@Gin890 Gin890 force-pushed the global_file_logger branch from 3824e06 to 0100f8a Compare January 20, 2026 18:53
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.

3 participants