Re: ORM for structured Logs

2017-04-10 Thread guettli
Thank you for sharing. Yes, the model is not difficult, that's why everybody helps himself up to now. Maybe this is the best solution and there is not much in common. The things which are in common (ORM, Admin-Interface) are already provided by django. It's just a bit of glue-code to get it

Re: ORM for structured Logs

2017-04-08 Thread Scot Hacker
On Tuesday, April 4, 2017 at 5:18:42 AM UTC-7, guettli wrote: > > In the past I was told: Don't store logs in the database. > For general purposes, I agree with this. Logging is a python standard, logs can be verbose, logrolling solutions are well established (and built in), etc. However, there

Re: ORM for structured Logs

2017-04-07 Thread guettli
Hi Marten, Am Donnerstag, 6. April 2017 14:10:58 UTC+2 schrieb knbk: > > Hi Thomas, > > The primary purpose of logging is to catch and examine errors. If > something went wrong, you want to know *when *and *why*. Logging to a > database increases the complexity and greatly increases the number

Re: ORM for structured Logs

2017-04-07 Thread guettli
Am Donnerstag, 6. April 2017 10:42:17 UTC+2 schrieb Christian Ledermann: > > On 6 April 2017 at 09:15, guettli > wrote: > > Hello Brick Wall, how are you doing? > > Hello Stonemason. > > What is your question? > > It was more an idea than a question. The question

Re: ORM for structured Logs

2017-04-06 Thread knbk
Hi Thomas, The primary purpose of logging is to catch and examine errors. If something went wrong, you want to know *when *and *why*. Logging to a database increases the complexity and greatly increases the number of things that can go wrong. The last thing you want to find out when retracing

Re: ORM for structured Logs

2017-04-06 Thread Christian Ledermann
On 6 April 2017 at 09:15, guettli wrote: > Hello Brick Wall, how are you doing? Hello Stonemason. What is your question? I do not have a strong opinion on your approach - i don't even know the problem you are trying to solve. or how big your logs are. a couple of KB per

Re: ORM for structured Logs

2017-04-06 Thread guettli
Hello Brick Wall, how are you doing? Am Dienstag, 4. April 2017 14:18:42 UTC+2 schrieb guettli: > > In the past I was told: Don't store logs in the database. > > Time (and hardware) has changed. > > I think it is time to store logs where I have great tools for analyzing > logs. > > Storing in a

ORM for structured Logs

2017-04-04 Thread guettli
In the past I was told: Don't store logs in the database. Time (and hardware) has changed. I think it is time to store logs where I have great tools for analyzing logs. Storing in a model which I can access via django orm is my current strategy. It seems no one has done this before. I could