Bug #73694 remove c-style ib_logf function, replace usage with ib::info(), ib::warn(), etc
Submitted: 24 Aug 2014 4:54 Modified: 24 Sep 2014 19:39
Reporter: Annamalai Gurusami Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: InnoDB storage engine Severity:S4 (Feature request)
Version:5.7 OS:Any
Assigned to: CPU Architecture:Any

[24 Aug 2014 4:54] Annamalai Gurusami
Description:
There must be only one way of doing things.  For logging purposes, previously we were using the C-style function ib_logf().  The difficulty with this is the requirement to specify the format specifiers (%lu, etc).  We have introduced new C++ style logging facilty - ib::info(), ib::warn(), ib::error() and ib::fatal().  This is already available for usage.  Refer to rb#4684 for more details. 

Since we want to go with the C++ approach, we need to remove the C-style ib_logf(), so that everybody will make use of the C++ stream approach. 

How to repeat:
See above.
[24 Sep 2014 19:39] Daniel Price
Posted by developer:
 
Fixed as of the upcoming 5.7.6 release, and here's the changelog entry:

The C-style function, "ib_logf()", used for writing log messages, has
been removed in favor of C++ style classes ("ib::info", "ib::warn",
"ib::error", and "ib::fatal").