error logging from fulltext plugin

error logging from fulltext plugin

am 16.07.2009 04:09:06 von Tom Kleinpeter

Hello,

I've written a fulltext plugin for Mysql 5.1. The plugin works great
and I'm happy with it, but I would like to log an error when I
encounter some unexpected data. Do plugins have access to the Mysql
error log? If so, how do I write to it?

Thanks!

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2@m.gmane.org

Re: error logging from fulltext plugin

am 16.07.2009 22:44:40 von Tom Kleinpeter

As a followup, simply logging to stderr prints to the $host.err in the
mysql data directory, which is good enough for my purposes.

In case anyone else is curious, when experimenting I found I could use
my_printf_error to return errors to the console where I inserted the
bad data. But, that didn't log anything to the permanent log. The
only trick about using my_printf_error was getting the header includes
correct -- I needed mysql/my_global.h first.


On Wed, Jul 15, 2009 at 7:09 PM, Tom Kleinpeter wr=
ote:
> Hello,
>
> I've written a fulltext plugin for Mysql 5.1. =A0The plugin works great
> and I'm happy with it, but I would like to log an error when I
> encounter some unexpected data. =A0Do plugins have access to the Mysql
> error log? =A0If so, how do I write to it?
>
> Thanks!
>

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=3Dgcdmg-mysql-2@m.gmane.o rg