saleem-mirza / serilog-sinks-sqlite

A Serilog sink that writes to SQLite
Apache License 2.0
56 stars 44 forks source link

Add a bit more detail to the readme on the structure of the db when created #18

Open mika76 opened 6 years ago

mika76 commented 6 years ago

Maybe include some dummy data, just to get a better idea of how this works without having to actually run it.

ivanromakh commented 5 years ago

Very cool library. Why only 8 starts. I give it one to make it one:) Just connected and it created database automatically:)

mika76 commented 5 years ago

@ivanromakh Could you please provide the schema here?

ivanromakh commented 5 years ago

@mika76 Created table and database looks like this image

mika76 commented 5 years ago

@ivanromakh thanks, that's fantastic. How are the Properties stored? json text?

ivanromakh commented 5 years ago

@make Hm. I stored only Message and Level. I am just started don`t used them. I need only message for my code:)

ivanromakh commented 5 years ago

@mika76 Just used the basic example from documentation

ivanromakh commented 5 years ago

logger.Information("This informational message will be written to SQLite database");

Information is Level. Message is in bracket thats all.

mika76 commented 5 years ago

No prob. Just looked at the code. Seems it serializes to json. Thanks!