On Wed, Apr 18, 2012 at 8:49 PM, Tom Hacohen <tom.hacohen@...> wrote:
> On 18/04/12 14:44, Gustavo Sverzut Barbieri wrote:
>> You are forcing it to a fixed File descriptor. Also you're imposing the
>> getenv() in every log function. Make it a global state that can be enabled
>> based on a numerical level. I'd also introduce a new backtrace function
>> that can be provided by user, or just a generic "post log" user function
>> that can contain a backtrace one, so maybe we can use it better.
> getenv should probably be cached, yeah.
> numerical level: good idea.
> file descriptor: should be the same as the eina log prints.
Yep, that's also my point of view.
> backtrace function: no comment.
Having a log post callback could be interesting, but I am wondering
what else use it could have than current eina_log don't have. Do you
have any use case in mind ?