Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logging frequency configuration #449

Open
bertvannuffelen opened this issue Apr 4, 2017 · 3 comments
Open

logging frequency configuration #449

bertvannuffelen opened this issue Apr 4, 2017 · 3 comments

Comments

@bertvannuffelen
Copy link

Hi,

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

kr,

Bert

@coreation
Copy link
Member

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
Copy link
Author

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants