You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, only the pure message from the ILogger-LogEvent is written to the database in SQLite logging. Important information, such as the exception details and the logger (i.e. the generic attribute of the ILogger), is lost. As a result, you do not know which error has occurred and which logger has logged it.
So what needs to be done is to extend the LogStore class, i.e. the data model of how a LogEvent is written in SQLite, to include the Exception (string?) and Logger (string?) properties.
Translated with DeepL.com (free version)
API Changes
LogStore Class add Exception string + Logger string
Intended Use Case
Just know what happened and where :)
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Microsoft.Extensions.Logging - ILogger is used everywhere including potential error points. I'm not even sure what you're asking for here
MrzJkl
changed the title
[Feature Request]: Add Exception and Logger Property to LogStore
[Feature Request]: Add Exception and Logger Property to LogStore SQLite
Jul 3, 2024
@aritchie Thx for your quick reply. I added additional notes. Im talking about SQLite Logging.
At the moment its just var message = formatter(state, exception); this.conn.GetConnection().Insert(new LogStore { Message = message, EventId = eventId.Id, LogLevel = logLevel, TimestampUtc = DateTime.UtcNow });
What i want to have logged additionally is e.g. Bad argument: TestClass (type TestClass) Exception information: System.ArgumentException: Object must be of type String. at System.String.CompareTo(Object value) at Example.Main()
Summary
Currently, only the pure message from the ILogger-LogEvent is written to the database in SQLite logging. Important information, such as the exception details and the logger (i.e. the generic attribute of the ILogger), is lost. As a result, you do not know which error has occurred and which logger has logged it.
So what needs to be done is to extend the LogStore class, i.e. the data model of how a LogEvent is written in SQLite, to include the Exception (string?) and Logger (string?) properties.
Translated with DeepL.com (free version)
API Changes
LogStore Class add Exception string + Logger string
Intended Use Case
Just know what happened and where :)
Code of Conduct
The text was updated successfully, but these errors were encountered: