/src/wxwidgets/include/wx/private/log.h
Line | Count | Source |
1 | | /////////////////////////////////////////////////////////////////////////////// |
2 | | // Name: wx/private/log.h |
3 | | // Purpose: Private wxLog-related declarations. |
4 | | // Author: Vadim Zeitlin |
5 | | // Created: 2025-01-19 (extracted from log.cpp) |
6 | | // Copyright: (c) 2025 Vadim Zeitlin <vadim@wxwidgets.org> |
7 | | // Licence: wxWindows licence |
8 | | /////////////////////////////////////////////////////////////////////////////// |
9 | | |
10 | | #ifndef _WX_PRIVATE_LOG_H_ |
11 | | #define _WX_PRIVATE_LOG_H_ |
12 | | |
13 | | #include "wx/log.h" |
14 | | #include "wx/msgout.h" |
15 | | |
16 | | // ---------------------------------------------------------------------------- |
17 | | // wxLogOutputBest: wxLog wrapper around wxMessageOutputBest |
18 | | // ---------------------------------------------------------------------------- |
19 | | |
20 | | class wxLogOutputBest : public wxLog |
21 | | { |
22 | | public: |
23 | 0 | wxLogOutputBest() = default; |
24 | | |
25 | | protected: |
26 | | virtual void DoLogText(const wxString& msg) override |
27 | 0 | { |
28 | 0 | wxMessageOutputBest().Output(msg); |
29 | 0 | } |
30 | | |
31 | | private: |
32 | | wxDECLARE_NO_COPY_CLASS(wxLogOutputBest); |
33 | | }; |
34 | | |
35 | | #endif // _WX_PRIVATE_LOG_H_ |