ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
PyPrintLogger.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 #include <CVLog.h>
10 
11 #undef slots
12 #include <pybind11/pybind11.h>
13 
14 #include <mutex>
15 
16 namespace py = pybind11;
17 
25 class PyPrintLogger : public CVLog
26 {
27  public:
28  PyPrintLogger() = default;
29 
30  ~PyPrintLogger() override = default;
31 
32  void logMessage(const QString &message, int level) override;
33 
34  private:
35  std::mutex m_lock;
36 };
Main log interface.
Definition: CVLog.h:25
PyPrintLogger()=default
~PyPrintLogger() override=default
void logMessage(const QString &message, int level) override
Generic message logging method.