16 enum log_message_type {
20 log_all = log_info | log_warning | log_error
36 Impl&
GetImpl(
const log_message_type& filem,
const log_message_type& consolem,
const log_message_type& logboxm);
43 ScopeLogger(
const log_message_type& _filem = log_all
44 ,
const log_message_type& _consolem = log_all
45 ,
const log_message_type& _logboxm = log_all);
50 void SetFilepath(
const std::wstring& _filepath = L
"C:\\ScopeData");
53 void Log(
const std::wstring& message,
const log_message_type& msgtype);
void GetUserLoggings()
Gets the text in the logbook window and calls FlushLogbox.
void DetachLogFrame()
Detaches a CLogFrame.
Impl & GetImpl(const log_message_type &filem, const log_message_type &consolem, const log_message_type &logboxm)
Has the local static implementation object static local variable is in there.
Implementation class of the ScopeLogger.
void SetFilepath(const std::wstring &_filepath=L"C:\\ScopeData")
Sets the filepath and creates logfile.
A logger class to log various messages and user comments.
void Log(const std::wstring &message, const log_message_type &msgtype)
Logs a message.
void Shutdown()
Calls ScopeLogger::Impl::Shutdown.
Frame window class for the log.
void AttachLogFrame(gui::CLogFrame *const _logframe)
Attaches a CLogFrame as the logbook window.
ScopeLogger(const log_message_type &_filem=log_all, const log_message_type &_consolem=log_all, const log_message_type &_logboxm=log_all)
Sets the pimpl from GetImpl.
Impl *const pimpl
pointer to the implementation
HWND GetLogFrameWindow()
Saves log frame parameters into Window (for recreating windows on startup).