![]()  | 
  
    MySQL 8.4.7
    
   Source Code Documentation 
   | 
 
The class logger is the base class of all the error log related classes. More...
#include <ut0log.h>
Public Member Functions | |
| 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... | |
Public Attributes | |
| 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 | |
| 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 | |
| template<class... Args> | |
| static std::string | msg (int err, Args &&...args) | 
| Format an error message.  More... | |
The class logger is the base class of all the error log related classes.
It contains a std::ostringstream object. The main purpose of this class is to forward operator<< to the underlying std::ostringstream object. Do not use this class directly, instead use one of the derived classes.
      
  | 
  virtual | 
Destructor.
      
  | 
  inlineprotected | 
Constructor.
| [in] | level | Logging level | 
| [in] | err | Error message code. | 
      
  | 
  inlineexplicitprotected | 
Constructor.
| [in] | level | Logging level | 
| [in] | err | Error message code. | 
| [in] | args | Variable length argument list | 
      
  | 
  inlineexplicitprotected | 
Constructor.
| [in] | level | Log error level | 
      
  | 
  inline | 
Format an error message.
| [in] | err | Error code from errmsg-*.txt. | 
| [in] | args | Variable length argument list | 
      
  | 
  protected | 
Uses LogEvent to report the log entry, using provided message.
| [in] | msg | message to be logged | 
      
  | 
  inlinestaticprotected | 
Format an error message.
| [in] | err | Error code from errmsg-*.txt. | 
| [in] | args | Variable length argument list | 
      
  | 
  inline | 
      
  | 
  inline | 
Write the given buffer to the internal string stream object.
| [in] | buf | the buffer contents to log. | 
| [in] | count | the length of the buffer buf. | 
      
  | 
  inline | 
Write the given buffer to the internal string stream object.
| [in] | buf | the buffer contents to log | 
| [in] | count | the length of the buffer buf. | 
| int ib::logger::m_err {} | 
Error code in errmsg-*.txt.
| loglevel ib::logger::m_level {INFORMATION_LEVEL} | 
Error logging level.
| std::ostringstream ib::logger::m_oss | 
For converting the message into a string.