[Wayland-bugs] [Bug 73339] libwayland: the library should not print anything to stderr

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Feb 20 23:53:53 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=73339

--- Comment #2 from nfxjfg at gmail.com ---
Well, you're almost there.

Remember how xlib had only a process wide error handler, and everyone hated it?
You're making the same mistake.

This is a very common mistake library designers do, and many libraries suffer
from this mistake - or rather, libraries using other libraries suffer from it,
because now they have to fight with other libraries for the log callback. That
everyone makes this error doesn't make it any less wrong.

I suggest that wl_log gets a context argument, and that the wl_log_handler can
be set per-context by the library user.

(Maybe this is less severe than the xlib issue, because wl_log_handler really
is only a log function and not more, but still.)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20140221/fd40f194/attachment.html>


More information about the Wayland-bugs mailing list