Skip to content

Ability to change EF minimum log level via config #1117

Description

@Toastbrot236

Currently, the minimum log level for EF to use is hardcoded to Warning by Refresh, so only warnings and above will be printed. The minimum log level should be configurable via our db.json config file instead. This should be simple, because this config is already used for other things in GameDatabaseContext.OnConfiguring(), which is also the method that sets the log level.

Changing the minimum log level could be useful for development, because EF usually logs its generated SQL queries at the Information log level, but Refresh currently doesn't have any way to print these since Information is below Warning.

The config option should default to Warning though, since this increased logging should be optional, and there usually is no reason to log the generated SQL in production.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions