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
Logging from within the migration #680
Comments
I would also like to know this.. |
I don't think it's possible. I've been using Console.WriteLine() from within my migrations, but that obviously works when run in a console runner only. |
what I did was create a custom announcer which writes to log4net. `public class Log4netAnnouncer : Announcer
|
I think about using Microsoft.Extensions.Logging and Microsoft.Extensions.DepencencyInjection. This would allow log message filtering and DI for migrations, which would be a solution for this problem. |
Fixed in develop branch |
I would like to be able to log information from inside of the migration. This should be included in the output log. Is this currently possible and if not, please consider it as a feature request.
The text was updated successfully, but these errors were encountered: