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
Auto reload is a good feature.
It make people spend less time on when zlog reloads its config file.
In zlog 1.2, auto reload is controlled by logging count. Each time when zlog_xxx() is called, this count add one, util reach the reload point.
In zlog 2.0, I considered make time as the reload flag. But the problem is, the time is fetched by log action which calls gettimeofday(). If there is no rules or formats need to output time, gettimeofday() will not be called and there will be no time. Then I can't know whether the time reach the reload point...
So the trade off of performance and feature comes again?
Should I give up the auto reload feature, to make everything clear?
Or should I call gettimeofday() in every zlog_xxx() function? which will make log without time slow but keep the auto reload feature.
Thanks for any ideas, or any other advice or opinion for zlog 2.0.
The text was updated successfully, but these errors were encountered:
Hello, I'm using zlog for one of my projects, and its a wonderful logging library.
I suppose, automatic reloading should be switched off, as it can be implemented easily with SIGHUP signal.
Auto reload is a good feature.
It make people spend less time on when zlog reloads its config file.
In zlog 1.2, auto reload is controlled by logging count. Each time when zlog_xxx() is called, this count add one, util reach the reload point.
In zlog 2.0, I considered make time as the reload flag. But the problem is, the time is fetched by log action which calls gettimeofday(). If there is no rules or formats need to output time, gettimeofday() will not be called and there will be no time. Then I can't know whether the time reach the reload point...
So the trade off of performance and feature comes again?
Should I give up the auto reload feature, to make everything clear?
Or should I call gettimeofday() in every zlog_xxx() function? which will make log without time slow but keep the auto reload feature.
Thanks for any ideas, or any other advice or opinion for zlog 2.0.
The text was updated successfully, but these errors were encountered: