-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Be consistent about Logger creation and management #2490
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-unknown
Milestone
Comments
anpete
added a commit
that referenced
this issue
Oct 1, 2015
- New DbContextOption "LogSqlParameterValues()" replacing use of Debug log level to control sensitive data logging. - Use a wrapping ILogger<T> in relational to transparently enforce sensitive data logging. - More consistentizing of logging usage, DI etc. - Better structured logging of DbCommands. - Use assembly scoped enums for event ids. - Use event ids everywhere. Fix #1374, #2490
anpete
added a commit
that referenced
this issue
Oct 1, 2015
- New DbContextOption "LogSqlParameterValues()" replacing use of Debug log level to control sensitive data logging. - Use a wrapping ILogger<T> in relational to transparently enforce sensitive data logging. - More consistentizing of logging usage, DI etc. - Better structured logging of DbCommands. - Use assembly scoped enums for event ids. - Use event ids everywhere. Fix #1374, #2490
anpete
added a commit
that referenced
this issue
Oct 1, 2015
- New DbContextOption "LogSqlParameterValues()" replacing use of Debug log level to control sensitive data logging. - Use a wrapping ILogger<T> in relational to transparently enforce sensitive data logging. - More consistentizing of logging usage, DI etc. - Better structured logging of DbCommands. - Use assembly scoped enums for event ids. - Use event ids everywhere. Fix #1374, #2490
anpete
added a commit
that referenced
this issue
Oct 1, 2015
- New DbContextOption "LogSqlParameterValues()" replacing use of Debug log level to control sensitive data logging. - Introduced ISensitiveDataLogger to be used when logging sensitive data. - More consistentizing of logging usage, DI etc. - Better structured logging of DbCommands. - Use assembly scoped enums for event ids. - Use event ids everywhere. Fix #1374, #2490
Done for runtime. |
ajcvickers
added
the
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
label
Oct 15, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-unknown
We need to decide on when to create an ILogger from an ILoggerFactory and be consistent about it. For example, how granular should the ILogger be? What should its lifetime be? How should it be shared across classes, if at all? Exampels--should one be created per query? Per context? Per database?
As part of this we should also review usage of things like RelationalLoggerExtensions
The text was updated successfully, but these errors were encountered: