\hypertarget{a00784}{\section{Logging\+Interface Class Reference}
\label{a00784}\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]{a00784}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
virtual void \hyperlink{a00784_a7c755e4f595b6c64aa1c33910ff0cc6f}{log} (\hyperlink{a02444_a595b2880f3ae74561ba390e3fd8c0e7c}{Logtype} \+\_\+type, Q\+String \+\_\+message)=0
\item 
virtual void \hyperlink{a00784_a06c95870c2614d5f54c6f15a26fb58d3}{log} (Q\+String \+\_\+message)=0
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00784_a0098b23e68799067757bd0dce5fb52b7}{virtual \hyperlink{a00784_a0098b23e68799067757bd0dce5fb52b7}{$\sim$\+Logging\+Interface} ()}\label{a00784_a0098b23e68799067757bd0dce5fb52b7}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Slots}
\begin{DoxyCompactItemize}
\item 
virtual void \hyperlink{a00784_aeaed8f7c2a62569c7cecbc68ae12e63e}{log\+Output} (\hyperlink{a02444_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{a00784}{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 123 of file Logging\+Interface.\+hh.



\subsection{Member Function Documentation}
\hypertarget{a00784_a7c755e4f595b6c64aa1c33910ff0cc6f}{\index{Logging\+Interface@{Logging\+Interface}!log@{log}}
\index{log@{log}!Logging\+Interface@{Logging\+Interface}}
\subsubsection[{log}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Logging\+Interface\+::log (
\begin{DoxyParamCaption}
\item[{{\bf Logtype}}]{\+\_\+type, }
\item[{Q\+String}]{\+\_\+message}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [pure virtual]}, {\ttfamily [signal]}}}\label{a00784_a7c755e4f595b6c64aa1c33910ff0cc6f}
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\+F\+O,L\+O\+G\+O\+U\+T,L\+O\+G\+W\+A\+R\+N,L\+O\+G\+E\+R\+R) \\
\hline
{\em \+\_\+message} & Message to be displayed \\
\hline
\end{DoxyParams}
\hypertarget{a00784_a06c95870c2614d5f54c6f15a26fb58d3}{\index{Logging\+Interface@{Logging\+Interface}!log@{log}}
\index{log@{log}!Logging\+Interface@{Logging\+Interface}}
\subsubsection[{log}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Logging\+Interface\+::log (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+message}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [pure virtual]}, {\ttfamily [signal]}}}\label{a00784_a06c95870c2614d5f54c6f15a26fb58d3}
Send a log message to the mainwindow of the widget ~\newline
defaults to L\+O\+G\+O\+U\+T message type ~\newline
This signal can be called from any thread.~\newline
 
\begin{DoxyParams}{Parameters}
{\em \+\_\+message} & Message to be displayed \\
\hline
\end{DoxyParams}
\hypertarget{a00784_aeaed8f7c2a62569c7cecbc68ae12e63e}{\index{Logging\+Interface@{Logging\+Interface}!log\+Output@{log\+Output}}
\index{log\+Output@{log\+Output}!Logging\+Interface@{Logging\+Interface}}
\subsubsection[{log\+Output}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Logging\+Interface\+::log\+Output (
\begin{DoxyParamCaption}
\item[{{\bf Logtype}}]{\+\_\+type, }
\item[{Q\+String}]{\+\_\+message}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}, {\ttfamily [slot]}}}\label{a00784_aeaed8f7c2a62569c7cecbc68ae12e63e}
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 150 of file Logging\+Interface.\+hh.



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