Redirect libxml2 errors into libsids handler
commitaf93367a9493fc4b87f0948ffeb3d5ca76cdb239
authorPetr Písař <petr.pisar@atlas.cz>
Sat, 25 Dec 2010 20:11:24 +0000 (25 21:11 +0100)
committerPetr Písař <petr.pisar@atlas.cz>
Sat, 25 Dec 2010 20:16:04 +0000 (25 21:16 +0100)
treeb29dbc0aba5c30285eb7ac18fa8b582662b5c172
parent1c3e70fdffbea2b8efe0a666090411007de1b6f0
Redirect libxml2 errors into libsids handler

libxml2 prints (parser) errors to stderr by default. These messages are
diverted into libsisds library now and they are accesible through libisds
wide logging mechanism. XML parser errors are logged with ILF_XML facility at
ILL_ERROR level.

This seems O.k. until you run isds_guess_raw_type() on unknown file. Then it's
still logged as ILL_ERROR. This could be improved in the future.
TODO
src/isds.c