When you encounter problems in the development or production environment, we would like to see the log to troubleshoot the problem.
.MinimumLevel.Debug()
will set MinimumLevel
to Debug
to show more logs.
We don't want to see EF Core's
Debug
logs when your problem has nothing to do with EF Core.
var loggerConfiguration = new LoggerConfiguration()
.MinimumLevel.Debug()
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Enrich.FromLogContext()
.WriteTo.Async(c => c.File("Logs/logs.txt"))
If you have an EF Core-related problem, you can remove MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
and EnableSensitiveDataLogging
to see EF Core debug logs.
Configure<AbpDbContextOptions>(options =>
{
/* The main point to change your DBMS.
* See also BookStoreMigrationsDbContextFactory for EF Core tooling. */
Configure<AbpDbContextOptions>(options =>
{
options.Configure(actions =>
{
actions.UseSqlServer();
actions.DbContextOptions.EnableSensitiveDataLogging();
});
});
});
If your API website experiences a JWT
authentication problem, please ShowPII
and output identity model
logs.
public async static Task<int> Main(string[] args)
{
IdentityModelEventSource.ShowPII = true;
IdentityModelEventSource.Logger.LogLevel = EventLevel.Verbose;
var wilsonTextLogger = new TextWriterEventListener("Logs/identitymodel.txt");
wilsonTextLogger.EnableEvents(IdentityModelEventSource.Logger, EventLevel.Verbose);
See: https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/wiki/PII https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/wiki/How-to-log-from-IdentityModelEventSource.Logger
If you have an OpenIddict
related problem, please override the OpenIddict
log level to Verbose
.
var loggerConfiguration = new LoggerConfiguration()
.MinimumLevel.Debug()
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.MinimumLevel.Override("OpenIddict", LogEventLevel.Verbose)
.Enrich.FromLogContext()
.WriteTo.Async(c => c.File("Logs/logs.txt"))
hi
context.Services.Configure<HubOptions>(options =>
{
// Set to 256KB
options.MaximumReceiveMessageSize = 262144;
});
hi
If you're only extending and using the ABP Framework in your own commercial application, you do not need to publish your source code. If you modify the ABP Framework itself, you must make those modifications public under LGPL 3.0, but this does not apply to your proprietary or commercial code that interacts with it.
https://abp.io/support/questions/7834/Request-for-confirmation-on-ABP-framework-commercial-license
hi
I will ask our angular team.
Thanks
: )
hi
Can you share a test project to reproduce?
I will download and check it.
liming.ma@volosoft.com
Thanks.
Thank you for sharing the solution.
hi
In your current relationship between Order
and Location.
Order is Dependent (child) and Location is Principal (parent)
When Order(child)
changed. ABP will think Location (parent)
needs to be updated.
You can try to change the Location (parent)
. In this case, Order(child)
will not change.
See https://learn.microsoft.com/en-us/ef/core/modeling/relationships/one-to-one#required-one-to-one