~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/query_log/file.h

  • Committer: Daniel Nichter
  • Date: 2011-07-30 20:43:56 UTC
  • mto: This revision was merged to the branch mainline in revision 2387.
  • Revision ID: daniel@percona.com-20110730204356-kwkfnwl99162xwp8
Use C++ iostream instead of Boost format.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
18
 */
19
19
 
20
 
#include <boost/format.hpp>
 
20
#include <iostream>
 
21
#include <fstream>
21
22
#include "event.h"
22
23
 
23
 
#define LOG_FILE_CLOSED -1
24
 
 
25
24
/**
26
25
 * @brief
27
26
 *   QueryLoggerFile implements logging to a file for the QueryLog class.
86
85
  bool closeLogFile();
87
86
 
88
87
private:
89
 
  int _fd;                   ///< File descriptor for open log file
90
 
  boost::format _formatter;  ///< Log file format printer
 
88
  std::ofstream _fh;  ///< File handle for open log file
91
89
};