WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
LogOutputFile.h
Go to the documentation of this file.
1#pragma once
2
3#include <fstream>
4#include <mutex>
5#include "LogOutput.h"
6
7namespace WMVLog
8{
10 class LogOutputFile : public LogOutput
11 {
12 public:
14 LogOutputFile(std::string fileName);
15
17 void write(const std::string& message);
18
19 private:
23
24 mutable std::mutex m_mutex;
25 std::ofstream m_logFile;
26 };
27}
Thread-safe log output sink that writes messages to a file on disk.
LogOutputFile(const LogOutputFile &)
std::ofstream m_logFile
void write(const std::string &message)
Write a log message to the file (thread-safe).
LogOutputFile & operator=(const LogOutputFile &)=delete
Abstract base class for log output sinks (console, file, etc.).
Definition LogOutput.h:10