Skip to content
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

Log a message with EF version information #8893

Closed
ajcvickers opened this issue Jun 19, 2017 · 1 comment
Closed

Log a message with EF version information #8893

ajcvickers opened this issue Jun 19, 2017 · 1 comment
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-enhancement
Milestone

Comments

@ajcvickers
Copy link
Member

Possibly at startup and/or context creation.

@ajcvickers ajcvickers self-assigned this Jun 19, 2017
@ajcvickers ajcvickers added this to the 2.0.0 milestone Jun 19, 2017
@ajcvickers
Copy link
Member Author

Look into anything else to capture. Eg:

  • Provider
  • Provider version
  • Common options that are not default:
    • MaxBatchSize
    • Default query tracking

ajcvickers added a commit that referenced this issue Jun 29, 2017
Issue #8893

Message is logged on context initialization and looks something like:

Entity Framework Core 2.0.0-preview3 initialized 'LoggingContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: NoTracking

Only options that are both non-default and simple to log are included. Providers get to participate.
ajcvickers added a commit that referenced this issue Jun 29, 2017
Issue #8893

Message is logged on context initialization and looks something like:

Entity Framework Core 2.0.0-preview3 initialized 'LoggingContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: NoTracking

Only options that are both non-default and simple to log are included. Providers get to participate.
ajcvickers added a commit that referenced this issue Jun 29, 2017
Issue #8893

Message is logged on context initialization and looks something like:

Entity Framework Core 2.0.0-preview3 initialized 'LoggingContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: NoTracking

Only options that are both non-default and simple to log are included. Providers get to participate.
@ajcvickers ajcvickers added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Jun 29, 2017
@ajcvickers ajcvickers removed their assignment Sep 1, 2024
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-enhancement
Projects
None yet
Development

No branches or pull requests

1 participant