-
Notifications
You must be signed in to change notification settings - Fork 43
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
Error Message column does not exist #104
Comments
Thanks for reporting the issue. The current PostgreSQL data provider is based on the serilog-sinks-postgresql sink and we need to introduce a new package for |
AH thanks, had to use the alternative for another issue. |
to help others I got this to work with serilog.sinks.postgresql.alternative Add column writer definitions IDictionary<string, ColumnWriterBase> columnWriters = new Dictionary<string, ColumnWriterBase> the configure with the writers
Then the normal usage of serilog-ui will work fine. |
Please upgrade |
Using Postgresql provider I get the error message:
"errorMessage": "{"errorMessage":"42703: column \"message\" does not exist\r\n\r\nPOSITION: 8"}"
The column does exist in the table.
.net core 7, web api project
serilog.sinks.postgresql.alternative 4.0.2
serilog.ui.postgresqlprovider 2.2.2
table schema
CREATE TABLE IF NOT EXISTS "Logs" (
"Message" TEXT,
"MessageTemplate" TEXT,
"Level" INTEGER,
"Timestamp" TIMESTAMP WITH TIME ZONE,
"Exception" TEXT,
"LogEvent" JSONB
) USING HEAP;
builder.Services.AddSerilogUi(options =>
{
options.UseNpgSql(dbSettings["ConnectionString"], "Logs", "public");
});
What am I missing?
Thanks!
The text was updated successfully, but these errors were encountered: