\hypertarget{classPluginLogger}{}\section{Plugin\+Logger Class Reference}
\label{classPluginLogger}\index{Plugin\+Logger@{Plugin\+Logger}}


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

Inheritance diagram for Plugin\+Logger\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classPluginLogger}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classPluginLogger_a21aa22c478ca3296f6ceff770d965ccb}\label{classPluginLogger_a21aa22c478ca3296f6ceff770d965ccb}} 
void \hyperlink{classPluginLogger_a21aa22c478ca3296f6ceff770d965ccb}{log} (\hyperlink{LoggingInterface_8hh_a595b2880f3ae74561ba390e3fd8c0e7c}{Logtype}, Q\+String)
\begin{DoxyCompactList}\small\item\em Sends the generated logs to the core. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classPluginLogger_a91b1f262e2dee20a38efa468c11de821}{Plugin\+Logger} (Q\+String \+\_\+plugin\+Name, \hyperlink{LoggingInterface_8hh_a595b2880f3ae74561ba390e3fd8c0e7c}{Logtype} \+\_\+type=\hyperlink{LoggingInterface_8hh_a595b2880f3ae74561ba390e3fd8c0e7ca86d6ca369e69a3a0f0c9bd063dd39a70}{L\+O\+G\+O\+UT})
\begin{DoxyCompactList}\small\item\em Standard Constructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classPluginLogger_ac30ea56abf41b2ea983cbf05534ed6fd}\label{classPluginLogger_ac30ea56abf41b2ea983cbf05534ed6fd}} 
\hyperlink{classPluginLogger_ac30ea56abf41b2ea983cbf05534ed6fd}{$\sim$\+Plugin\+Logger} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
void \hyperlink{classPluginLogger_a2fc78484a7a990935e32cccc67652fb2}{operator$<$$<$} (const std\+::string \&\+\_\+s)
\begin{DoxyCompactList}\small\item\em Provide operator for streaming. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Slots}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{classPluginLogger_a7829c7ee1069c99dee47ac262e88c9e7}{slot\+Log} (\hyperlink{LoggingInterface_8hh_a595b2880f3ae74561ba390e3fd8c0e7c}{Logtype} \+\_\+type, Q\+String \+\_\+message)
\begin{DoxyCompactList}\small\item\em Log messages with a given Logtype. \end{DoxyCompactList}\item 
void \hyperlink{classPluginLogger_af3d00762f1ee810e0310ffa40dbed3c8}{slot\+Log} (Q\+String \+\_\+message)
\begin{DoxyCompactList}\small\item\em Wrapper which logs at L\+O\+G\+O\+UT Logtype by default. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classPluginLogger_a524c7787e9a5413ed0104569ef7c784c}\label{classPluginLogger_a524c7787e9a5413ed0104569ef7c784c}} 
Q\+String \hyperlink{classPluginLogger_a524c7787e9a5413ed0104569ef7c784c}{plugin\+Name\+\_\+}
\begin{DoxyCompactList}\small\item\em prepend this name to all output messages \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classPluginLogger_aeba9b69cf6ef4cbdaf3ef3c536cf9b9c}\label{classPluginLogger_aeba9b69cf6ef4cbdaf3ef3c536cf9b9c}} 
\hyperlink{LoggingInterface_8hh_a595b2880f3ae74561ba390e3fd8c0e7c}{Logtype} \hyperlink{classPluginLogger_aeba9b69cf6ef4cbdaf3ef3c536cf9b9c}{default\+Log\+Type\+\_\+}
\begin{DoxyCompactList}\small\item\em Default logtype ( used for streams ) \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
A wrapper class, getting events from an plugin, prepending plugin name to the log and passing it to the core. This class is generated for every plugin of the core. It also does some cleanup of the passed strings.~\newline


Definition at line 73 of file Plugin\+Logging.\+hh.



\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{classPluginLogger_a91b1f262e2dee20a38efa468c11de821}\label{classPluginLogger_a91b1f262e2dee20a38efa468c11de821}} 
\index{Plugin\+Logger@{Plugin\+Logger}!Plugin\+Logger@{Plugin\+Logger}}
\index{Plugin\+Logger@{Plugin\+Logger}!Plugin\+Logger@{Plugin\+Logger}}
\subsubsection{\texorpdfstring{Plugin\+Logger()}{PluginLogger()}}
{\footnotesize\ttfamily Plugin\+Logger\+::\+Plugin\+Logger (\begin{DoxyParamCaption}\item[{Q\+String}]{\+\_\+plugin\+Name,  }\item[{\hyperlink{LoggingInterface_8hh_a595b2880f3ae74561ba390e3fd8c0e7c}{Logtype}}]{\+\_\+type = {\ttfamily \hyperlink{LoggingInterface_8hh_a595b2880f3ae74561ba390e3fd8c0e7ca86d6ca369e69a3a0f0c9bd063dd39a70}{L\+O\+G\+O\+UT}} }\end{DoxyParamCaption})}



Standard Constructor. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+plugin\+Name} & Name of the Plugin which uses this logger (Prepended to all Output) \\
\hline
{\em \+\_\+type} & Default log type ( used for streaming operations ) \\
\hline
\end{DoxyParams}


Definition at line 66 of file Plugin\+Logging.\+cc.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{classPluginLogger_a2fc78484a7a990935e32cccc67652fb2}\label{classPluginLogger_a2fc78484a7a990935e32cccc67652fb2}} 
\index{Plugin\+Logger@{Plugin\+Logger}!operator$<$$<$@{operator$<$$<$}}
\index{operator$<$$<$@{operator$<$$<$}!Plugin\+Logger@{Plugin\+Logger}}
\subsubsection{\texorpdfstring{operator$<$$<$()}{operator<<()}}
{\footnotesize\ttfamily void Plugin\+Logger\+::operator$<$$<$ (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{\+\_\+s }\end{DoxyParamCaption})}



Provide operator for streaming. 

This operator is used for streaming ( e.\+g. catch omerr and omerr streams) and redirect them to the logging widget. The default log level passed to the constructor will be used for the message


\begin{DoxyParams}{Parameters}
{\em \+\_\+s} & String to display \\
\hline
\end{DoxyParams}


Definition at line 103 of file Plugin\+Logging.\+cc.

\mbox{\Hypertarget{classPluginLogger_a7829c7ee1069c99dee47ac262e88c9e7}\label{classPluginLogger_a7829c7ee1069c99dee47ac262e88c9e7}} 
\index{Plugin\+Logger@{Plugin\+Logger}!slot\+Log@{slot\+Log}}
\index{slot\+Log@{slot\+Log}!Plugin\+Logger@{Plugin\+Logger}}
\subsubsection{\texorpdfstring{slot\+Log}{slotLog}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily void Plugin\+Logger\+::slot\+Log (\begin{DoxyParamCaption}\item[{\hyperlink{LoggingInterface_8hh_a595b2880f3ae74561ba390e3fd8c0e7c}{Logtype}}]{\+\_\+type,  }\item[{Q\+String}]{\+\_\+message }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [private]}, {\ttfamily [slot]}}



Log messages with a given Logtype. 

Receive log events from plugins and pass them to core 
\begin{DoxyParams}{Parameters}
{\em \+\_\+type} & Logtype (defines the color of the output) \\
\hline
{\em \+\_\+message} & The message for output \\
\hline
\end{DoxyParams}


Definition at line 79 of file Plugin\+Logging.\+cc.

\mbox{\Hypertarget{classPluginLogger_af3d00762f1ee810e0310ffa40dbed3c8}\label{classPluginLogger_af3d00762f1ee810e0310ffa40dbed3c8}} 
\index{Plugin\+Logger@{Plugin\+Logger}!slot\+Log@{slot\+Log}}
\index{slot\+Log@{slot\+Log}!Plugin\+Logger@{Plugin\+Logger}}
\subsubsection{\texorpdfstring{slot\+Log}{slotLog}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily void Plugin\+Logger\+::slot\+Log (\begin{DoxyParamCaption}\item[{Q\+String}]{\+\_\+message }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [private]}, {\ttfamily [slot]}}



Wrapper which logs at L\+O\+G\+O\+UT Logtype by default. 

Receive log events from plugins (defaults to L\+O\+G\+O\+UT Message type)


\begin{DoxyParams}{Parameters}
{\em \+\_\+message} & The message for output \\
\hline
\end{DoxyParams}


Definition at line 90 of file Plugin\+Logging.\+cc.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Open\+Flipper/\+Logging/Plugin\+Logging.\+hh\item 
Open\+Flipper/\+Logging/Plugin\+Logging.\+cc\end{DoxyCompactItemize}
