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").

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.052 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.