tdt / core

Transform any dataset into an HTTP API with The DataTank
http://thedatatank.com
83 stars 31 forks source link

logging frequency configuration #449

Open bertvannuffelen opened 7 years ago

bertvannuffelen commented 7 years ago

Hi,

where do I find the logging frequency configuration. On our system it flushes every 30 minutes, which is rather annoying.

kr,

Bert

coreation commented 7 years ago

What do you mean exactly by logging frequency? I don't recall any setting that clears the logs in the platform itself, perhaps there's a cronjob that you missed?

bertvannuffelen commented 7 years ago

I do not find either a cron referring to it.

i mean with logging frequency, how quickly a log message is written to the lavarel.log. At this moment I have to wait 30 minutes to see all the logs messages of past half hour. I expected that it would be flushed to disk when a buffer was full or when it was a long time ago that it was flushed to disk. I searched for parameters to configure or methods to trigger the flush explicity, but I have not found them.

coreation commented 7 years ago

That's weird, I have worked with Laravel for quite a while now over the last 3 years and I've never encountered a logging buffer that keeps logs in that buffer before writing it to the default log file. The logging is always instant. Keeping it somewhere would also require some sort of temporary database or queue, which would need to be configured. There's none of that sort in the application either. You can check this quite easily, add a "\Log::info("hello world")" somewhere in a controller or boot method of the framework, then check the laravel.log for that line, it should be there instantly.