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


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

Inheritance diagram for Plugin\+Logger\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a00972}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00972_a21aa22c478ca3296f6ceff770d965ccb}{void \hyperlink{a00972_a21aa22c478ca3296f6ceff770d965ccb}{log} (\hyperlink{a02444_a595b2880f3ae74561ba390e3fd8c0e7c}{Logtype}, Q\+String)}\label{a00972_a21aa22c478ca3296f6ceff770d965ccb}

\begin{DoxyCompactList}\small\item\em Sends the generated logs to the core. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a00972_a91b1f262e2dee20a38efa468c11de821}{Plugin\+Logger} (Q\+String \+\_\+plugin\+Name, \hyperlink{a02444_a595b2880f3ae74561ba390e3fd8c0e7c}{Logtype} \+\_\+type=\hyperlink{a02444_a595b2880f3ae74561ba390e3fd8c0e7ca86d6ca369e69a3a0f0c9bd063dd39a70}{L\+O\+G\+O\+U\+T})
\begin{DoxyCompactList}\small\item\em Standard Constructor. \end{DoxyCompactList}\item 
\hypertarget{a00972_ac30ea56abf41b2ea983cbf05534ed6fd}{\hyperlink{a00972_ac30ea56abf41b2ea983cbf05534ed6fd}{$\sim$\+Plugin\+Logger} ()}\label{a00972_ac30ea56abf41b2ea983cbf05534ed6fd}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
void \hyperlink{a00972_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{a00972_a7829c7ee1069c99dee47ac262e88c9e7}{slot\+Log} (\hyperlink{a02444_a595b2880f3ae74561ba390e3fd8c0e7c}{Logtype} \+\_\+type, Q\+String \+\_\+message)
\begin{DoxyCompactList}\small\item\em Log messages with a given Logtype. \end{DoxyCompactList}\item 
void \hyperlink{a00972_af3d00762f1ee810e0310ffa40dbed3c8}{slot\+Log} (Q\+String \+\_\+message)
\begin{DoxyCompactList}\small\item\em Wrapper which logs at L\+O\+G\+O\+U\+T Logtype by default. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00972_a524c7787e9a5413ed0104569ef7c784c}{Q\+String \hyperlink{a00972_a524c7787e9a5413ed0104569ef7c784c}{plugin\+Name\+\_\+}}\label{a00972_a524c7787e9a5413ed0104569ef7c784c}

\begin{DoxyCompactList}\small\item\em prepend this name to all output messages \end{DoxyCompactList}\item 
\hypertarget{a00972_aeba9b69cf6ef4cbdaf3ef3c536cf9b9c}{\hyperlink{a02444_a595b2880f3ae74561ba390e3fd8c0e7c}{Logtype} \hyperlink{a00972_aeba9b69cf6ef4cbdaf3ef3c536cf9b9c}{default\+Log\+Type\+\_\+}}\label{a00972_aeba9b69cf6ef4cbdaf3ef3c536cf9b9c}

\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 80 of file Logging.\+hh.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a00972_a91b1f262e2dee20a38efa468c11de821}{\index{Plugin\+Logger@{Plugin\+Logger}!Plugin\+Logger@{Plugin\+Logger}}
\index{Plugin\+Logger@{Plugin\+Logger}!Plugin\+Logger@{Plugin\+Logger}}
\subsubsection[{Plugin\+Logger}]{\setlength{\rightskip}{0pt plus 5cm}Plugin\+Logger\+::\+Plugin\+Logger (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+plugin\+Name, }
\item[{{\bf Logtype}}]{\+\_\+type = {\ttfamily {\bf L\+O\+G\+O\+U\+T}}}
\end{DoxyParamCaption}
)}}\label{a00972_a91b1f262e2dee20a38efa468c11de821}


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 72 of file Plugin\+Logging.\+cc.



\subsection{Member Function Documentation}
\hypertarget{a00972_a2fc78484a7a990935e32cccc67652fb2}{\index{Plugin\+Logger@{Plugin\+Logger}!operator$<$$<$@{operator$<$$<$}}
\index{operator$<$$<$@{operator$<$$<$}!Plugin\+Logger@{Plugin\+Logger}}
\subsubsection[{operator$<$$<$}]{\setlength{\rightskip}{0pt plus 5cm}void Plugin\+Logger\+::operator$<$$<$ (
\begin{DoxyParamCaption}
\item[{const std\+::string \&}]{\+\_\+s}
\end{DoxyParamCaption}
)}}\label{a00972_a2fc78484a7a990935e32cccc67652fb2}


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 109 of file Plugin\+Logging.\+cc.

\hypertarget{a00972_a7829c7ee1069c99dee47ac262e88c9e7}{\index{Plugin\+Logger@{Plugin\+Logger}!slot\+Log@{slot\+Log}}
\index{slot\+Log@{slot\+Log}!Plugin\+Logger@{Plugin\+Logger}}
\subsubsection[{slot\+Log}]{\setlength{\rightskip}{0pt plus 5cm}void Plugin\+Logger\+::slot\+Log (
\begin{DoxyParamCaption}
\item[{{\bf Logtype}}]{\+\_\+type, }
\item[{Q\+String}]{\+\_\+message}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [private]}, {\ttfamily [slot]}}}\label{a00972_a7829c7ee1069c99dee47ac262e88c9e7}


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 85 of file Plugin\+Logging.\+cc.

\hypertarget{a00972_af3d00762f1ee810e0310ffa40dbed3c8}{\index{Plugin\+Logger@{Plugin\+Logger}!slot\+Log@{slot\+Log}}
\index{slot\+Log@{slot\+Log}!Plugin\+Logger@{Plugin\+Logger}}
\subsubsection[{slot\+Log}]{\setlength{\rightskip}{0pt plus 5cm}void Plugin\+Logger\+::slot\+Log (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+message}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [private]}, {\ttfamily [slot]}}}\label{a00972_af3d00762f1ee810e0310ffa40dbed3c8}


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

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


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


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



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