Files
core/Common/ASCDocxFormat/Source/Utility/LogDetails.h
Alexey.Musinov 9ea51f5678 выпиливание boost'a
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@52920 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-20 22:33:45 +03:00

41 lines
952 B
C++

#pragma once
#ifndef UTILITY_LOG_DETAILS_INCLUDE_H_
#define UTILITY_LOG_DETAILS_INCLUDE_H_
#include <string>
#include <fstream>
#include <iostream>
#include <assert.h>
namespace Details
{
class Log
{
public:
Log(const std::string& log_file, const std::string& err_file);
~Log();
public:
void event(const std::string& message);
void event(const std::wstring& message);
void message(const std::string& message);
void message(const std::wstring& message);
void warning(const std::string& message);
void warning(const std::wstring& message);
void error(const std::string& message);
void error(const std::wstring& message);
private:
std::wofstream m_log;
std::wofstream m_err;
private:
void toLog(const std::string& str);
void toLog(const std::wstring& str);
private:
static const std::string s_dtPattern;
};
} // namespace Details
#endif // UTILITY_LOG_DETAILS_INCLUDE_H_