\hypertarget{a06900}{}\section{Logging\+Interface Class Reference}
\label{a06900}\index{Logging\+Interface@{Logging\+Interface}}


Interface for all Plugins which do logging to the logging window of the framework.  




{\ttfamily \#include $<$Open\+Flipper/\+Base\+Plugin/\+Logging\+Interface.\+hh$>$}

Inheritance diagram for Logging\+Interface\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=12.000000cm]{a06900}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
virtual void \hyperlink{a06900_a7c755e4f595b6c64aa1c33910ff0cc6f}{log} (\hyperlink{a00035_a595b2880f3ae74561ba390e3fd8c0e7c}{Logtype} \+\_\+type, Q\+String \+\_\+message)=0
\item 
virtual void \hyperlink{a06900_a06c95870c2614d5f54c6f15a26fb58d3}{log} (Q\+String \+\_\+message)=0
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a06900_a0098b23e68799067757bd0dce5fb52b7}\label{a06900_a0098b23e68799067757bd0dce5fb52b7}} 
virtual \hyperlink{a06900_a0098b23e68799067757bd0dce5fb52b7}{$\sim$\+Logging\+Interface} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Slots}
\begin{DoxyCompactItemize}
\item 
virtual void \hyperlink{a06900_aeaed8f7c2a62569c7cecbc68ae12e63e}{log\+Output} (\hyperlink{a00035_a595b2880f3ae74561ba390e3fd8c0e7c}{Logtype} \+\_\+type, Q\+String \+\_\+message)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Interface for all Plugins which do logging to the logging window of the framework. 

\hyperlink{loggingInterfacePage}{Detailed description} ~\newline
By emitting the given signals you can log information to the main logger window of the core. To simplify debugging, the core will prepend the plugin name to every log message. You dont have to do this yourself!~\newline
The log message will either be black or will be colored depending on the Logtype you specified.

A more detailed description of the \hyperlink{a06900}{Logging\+Interface} can be found \hyperlink{loggingInterfacePage}{here} or read our tutorials \hyperlink{ex2}{Implementing a mesh smoother plugin} and \hyperlink{ex3}{Implementing mouse and keyboard interaction} for an example of how to use logging output. 

Definition at line 112 of file Logging\+Interface.\+hh.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a06900_a7c755e4f595b6c64aa1c33910ff0cc6f}\label{a06900_a7c755e4f595b6c64aa1c33910ff0cc6f}} 
\index{Logging\+Interface@{Logging\+Interface}!log@{log}}
\index{log@{log}!Logging\+Interface@{Logging\+Interface}}
\subsubsection{\texorpdfstring{log}{log}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual void Logging\+Interface\+::log (\begin{DoxyParamCaption}\item[{\hyperlink{a00035_a595b2880f3ae74561ba390e3fd8c0e7c}{Logtype}}]{\+\_\+type,  }\item[{Q\+String}]{\+\_\+message }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}, {\ttfamily [signal]}}

Send a log message to the mainwindow of the widget ~\newline
This signal can be called from any thread.~\newline
 
\begin{DoxyParams}{Parameters}
{\em \+\_\+type} & Message type (L\+O\+G\+I\+N\+FO,L\+O\+G\+O\+UT,L\+O\+G\+W\+A\+RN,L\+O\+G\+E\+RR) \\
\hline
{\em \+\_\+message} & Message to be displayed \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{a06900_a06c95870c2614d5f54c6f15a26fb58d3}\label{a06900_a06c95870c2614d5f54c6f15a26fb58d3}} 
\index{Logging\+Interface@{Logging\+Interface}!log@{log}}
\index{log@{log}!Logging\+Interface@{Logging\+Interface}}
\subsubsection{\texorpdfstring{log}{log}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void Logging\+Interface\+::log (\begin{DoxyParamCaption}\item[{Q\+String}]{\+\_\+message }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}, {\ttfamily [signal]}}

Send a log message to the mainwindow of the widget ~\newline
defaults to L\+O\+G\+O\+UT message type ~\newline
This signal can be called from any thread.~\newline
 
\begin{DoxyParams}{Parameters}
{\em \+\_\+message} & Message to be displayed \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{a06900_aeaed8f7c2a62569c7cecbc68ae12e63e}\label{a06900_aeaed8f7c2a62569c7cecbc68ae12e63e}} 
\index{Logging\+Interface@{Logging\+Interface}!log\+Output@{log\+Output}}
\index{log\+Output@{log\+Output}!Logging\+Interface@{Logging\+Interface}}
\subsubsection{\texorpdfstring{log\+Output}{logOutput}}
{\footnotesize\ttfamily virtual void Logging\+Interface\+::log\+Output (\begin{DoxyParamCaption}\item[{\hyperlink{a00035_a595b2880f3ae74561ba390e3fd8c0e7c}{Logtype}}]{\+\_\+type,  }\item[{Q\+String}]{\+\_\+message }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}, {\ttfamily [slot]}}

Through this slot you can receive all logging information emitted by Open\+Flipper or one of its plugins


\begin{DoxyParams}{Parameters}
{\em \+\_\+type} & Message type \\
\hline
{\em \+\_\+message} & Message \\
\hline
\end{DoxyParams}


Definition at line 139 of file Logging\+Interface.\+hh.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
Open\+Flipper/\+Base\+Plugin/\hyperlink{a00035}{Logging\+Interface.\+hh}\end{DoxyCompactItemize}
