#pragma once #include "SystemLog.hpp" //----------------------------------------------------------------------------- // //----------------------------------------------------------------------------- namespace ECOM { namespace Log { class AppLog_API _XDWLog : public CSystemLog { public: _XDWLog (); _XDWLog (LPCSTR msg); ~_XDWLog (); virtual void Flush (const DString & str) override; _XDWLog & NewLine (); _XDWLog & Brace (LPCSTR str) { m_Detail += '['; m_Detail += str; m_Detail += ']'; m_Detail += ' '; return *this; } _XDWLog & Brace (const DString & str) { m_Detail += '['; m_Detail += str; m_Detail += ']'; m_Detail += ' '; return *this; } _XDWLog & Brace (const WString & str) { m_Detail += '['; m_Detail += str.ToDString (); m_Detail += ']'; m_Detail += ' '; return *this; } _XDWLog & Brace (int i) { return Brace (DString::From (i)); } }; } };