Yes, but you can share the all websites.
hi
Please share the logs.txt to liming.ma@volosoft.com
hi
Can you share a simple project to reproduce?
liming.ma@volosoft.com
Thanks
hi
That may be the browser; you can enable the Debug logs.
public class Program
{
public async static Task<int> Main(string[] args)
{
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Enrich.FromLogContext()
.WriteTo.Async(c => c.File("Logs/logs.txt"))
.WriteTo.Async(c => c.Console())
.CreateLogger();
hi
How can we achieve this with ABP?
services.AddControllers().AddJsonOptions(options =>
{
options.JsonSerializerOptions.Converters.Add(new JsonStringEnumConverter());
})
In abp project.
services.Configure<JsonOptions>(options =>
{
options.JsonSerializerOptions.Converters.Add(new JsonStringEnumConverter());
});
hi
switch-to-local
You can try to customize the LocalReferenceConverter to skip for the framework. Then build a local dotnet global tool and install and use it.
https://github.com/abpframework/abp/blob/blazor-full-stack-web-ui/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/SwitchToLocalCommand.cs#L39
https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/LocalReferenceConverter.cs#L40
hi
we got a project were we are sure the emailing is working, however I still can't make the serilog send an email with the error, is there any demo for this with ABP? I couldn't find any information about this.
Can you share the email SMTP info with me? I will test it on my local. liming.ma@volosoft.com
Also when adding the Sink for file/console it is only logging the httpapihist errors, not the one in the other layers, how can we implement so we see the erros from all the layers ? As I am sure if I fix the email issue I will only get the errors from the httpapihost layer
Like I said. Each website has its log configuration. You need to configure them to output logs to a data source.
hi
We fixed this in 8.0.4. Please give it a try. Your question credits have been refunded.
hi
Can you try to add these code to your MyProjectNameEntityFrameworkCoreTestModule
https://github.com/abpframework/abp/blob/rel-8.0/templates/app/aspnet-core/test/MyCompanyName.MyProjectName.EntityFrameworkCore.Tests/EntityFrameworkCore/MyProjectNameEntityFrameworkCoreTestModule.cs#L25-L40