serilog-contrib / Serilog.Sinks.Postgresql.Alternative

Serilog.Sinks.Postgresql.Alternative is a library to save logging information from https://github.com/serilog/serilog to https://www.postgresql.org/.
MIT License
67 stars 13 forks source link

How to order table columns in JSON file? #57

Closed pedrooV2 closed 1 year ago

cremor commented 1 year ago

@SeppPenner I've also noticed that the column order defined in the JSON setting loggerColumnOptions is ignored. It seems like the columns are always created in alphabetical order. It would be great if this could be improved, either by preserving the order from the JSON file, or by adding an explicit order setting.

SeppPenner commented 1 year ago

@SeppPenner I've also noticed that the column order defined in the JSON setting loggerColumnOptions is ignored. It seems like the columns are always created in alphabetical order. It would be great if this could be improved, either by preserving the order from the JSON file, or by adding an explicit order setting.

I need to check that once again.

SeppPenner commented 1 year ago

I have created a test, this definitely doesn't work. Will try to fix it now.

SeppPenner commented 1 year ago

Should work with the latest changes in V4.0.1, checkout the added test or the how to use file https://github.com/serilog-contrib/Serilog.Sinks.Postgresql.Alternative/blob/master/HowToUse.md (BREAKING change)