Hinni / seq-input-mssql

Import data from MSSQL database to Seq. For example for error logs stored in tables.
Other
3 stars 3 forks source link

Disable debug logging #24

Open sedzik opened 7 months ago

sedzik commented 7 months ago

https://github.com/Hinni/seq-input-mssql/blob/9b7dc485db7dc93d0b1dbc53c25bf98e6a8fc15f/src/Seq.Input.MSSql/Executor.cs#L102

I am not sure if this is a bug but I am experimenting with this addon and I do not want these types of logs rows to get written to SEQ:

"Query new table rows from 2024-02-12T11:09:06.7894255+01:00 to 2024-02-12T11:09:11.7915443+01:00"

I looked over the code and cannot find a way to disable this. What can be done, maybe I am not getting something?

Hinni commented 7 months ago

Hi @sedzik

Thank you for your message. It's not possible to completely deactivate logging with the current logic. I'm not sure if @MattMofDoom intentionally built this in so that you can see progress in the log - if the sink is still "querying" at all. I think this could be configurable in a future release with a flag LogQueryProgress or similar.

Sincerely, Michael

sedzik commented 7 months ago

Ok. Would be great to be able to shut this off as it causes so much extra noise in SEQ ingested logs. To me, this is "debug" logging which is useful when trying to figure out if this great plugin works or not. :)