New library: lib_mysqludf_log

22 views
Skip to first unread message

Roland Bouman

unread,
Jul 7, 2008, 3:08:48 AM7/7/08
to The UDF Repository for MySQL
Hi all,

I uploaded an initial version of a new library, lib_mysqludf_log. The
idea is that it will contain utilities for logging debug or error
messages. It is currently very crude - there is no proper build script
yet although there is a hint on how to compile in the opening comment
of the source file.

Currently, it contains only one function:

log_error(<string>)

which terminates <string> with a line end and writes it to the MySQL
error log.

It is deliberately quite simple at the moment (I don't think it can be
more simple) - if you have any suggestions to improve, please reply to
this thread and we can discuss.

In the future we can maybe add functionality to write to the syslog,
and add support for logging levels. I have also been thinking about
support for automatic fields such as the timestamp but I am in doubt
whether this should be part of the logging library itself. So, your
suggestions are most welcome.

Thanks in advance, and kind regards,


Roland.
Reply all
Reply to author
Forward
0 new messages