[Mesa-dev] Logging infrastructure?
Brian Paul
brianp at vmware.com
Tue Jan 23 17:56:52 UTC 2018
On 01/18/2018 02:44 PM, Chuck Atkins wrote:
> Is there a logging infrastructure currently available to drivers in
> Mesa? I was looking to clean up some of swr's debug / info output and
> have it conditional on the MESA_DEBUG and LIBGL_DEBUG variables but then
> I realized that it's really something useful all across mesa so there
> may already be something there for it. If not though, I'd be interested
> in adding some very light weight functions for just that purpose could
> be used by any driver rather than just fprintf(stderr, ...);
Calls to _mesa_debug(), _mesa_log(), mesa_warning() get logged to stderr
by default. Set MESA_LOG_FILE to redirect to a file.
There's similar for Gallium: debug_printf(), GALLIUM_LOG_FILE.
-Brian
More information about the mesa-dev
mailing list