|  | MySQL 9.5.0
    Source Code Documentation | 
Emit an error message if the given predicate is true, otherwise emit a warning message. More...
#include <ut0log.h>
| Public Member Functions | |
| error_or_warn (bool pred) | |
| Default constructor uses ER_IB_MSG_0.  More... | |
| template<class... Args> | |
| error_or_warn (bool pred, int err, Args &&...args) | |
| Constructor.  More... | |
|  Public Member Functions inherited from ib::logger | |
| virtual | ~logger () | 
| Destructor.  More... | |
| template<class... Args> | |
| logger & | log (int err, Args &&...args) | 
| Format an error message.  More... | |
| template<typename T > | |
| logger & | operator<< (const T &rhs) | 
| std::ostream & | write (const char *buf, std::streamsize count) | 
| Write the given buffer to the internal string stream object.  More... | |
| std::ostream & | write (const unsigned char *buf, std::streamsize count) | 
| Write the given buffer to the internal string stream object.  More... | |
| Additional Inherited Members | |
|  Public Attributes inherited from ib::logger | |
| std::ostringstream | m_oss | 
| For converting the message into a string.  More... | |
| int | m_err {} | 
| Error code in errmsg-*.txt.  More... | |
| loglevel | m_level {INFORMATION_LEVEL} | 
| Error logging level.  More... | |
|  Protected Member Functions inherited from ib::logger | |
| void | log_event (std::string msg) | 
| Uses LogEvent to report the log entry, using provided message.  More... | |
| logger (loglevel level, int err) | |
| Constructor.  More... | |
| template<class... Args> | |
| logger (loglevel level, int err, Args &&...args) | |
| Constructor.  More... | |
| logger (loglevel level) | |
| Constructor.  More... | |
|  Static Protected Member Functions inherited from ib::logger | |
| template<class... Args> | |
| static std::string | msg (int err, Args &&...args) | 
| Format an error message.  More... | |
Emit an error message if the given predicate is true, otherwise emit a warning message.
| 
 | inline | 
Default constructor uses ER_IB_MSG_0.
| [in] | pred | True if it's a warning. | 
| 
 | inlineexplicit | 
Constructor.
| [in] | pred | True if it's a warning. | 
| [in] | err | Error code from errmsg-*.txt. | 
| [in] | args | Variable length argument list |