Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > 94774a05d4f99367afd97b8b4adf565d > files > 933

libfilezilla-devel-0.19.3-1.mga7.armv7hl.rpm

\hypertarget{classfz_1_1logger__interface}{}\section{logger\+\_\+interface Class Reference}
\label{classfz_1_1logger__interface}\index{logger\_interface@{logger\_interface}}


Abstract interface for logging strings.  




{\ttfamily \#include $<$logger.\+hpp$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classfz_1_1logger__interface_a6d27e03e5fbe2351098bea9c4d0e2e2b}\label{classfz_1_1logger__interface_a6d27e03e5fbe2351098bea9c4d0e2e2b}} 
{\bfseries logger\+\_\+interface} (\mbox{\hyperlink{classfz_1_1logger__interface}{logger\+\_\+interface}} const \&)=delete
\item 
\mbox{\Hypertarget{classfz_1_1logger__interface_a0cb466a41ebfc056126331228cb1de2e}\label{classfz_1_1logger__interface_a0cb466a41ebfc056126331228cb1de2e}} 
\mbox{\hyperlink{classfz_1_1logger__interface}{logger\+\_\+interface}} \& {\bfseries operator=} (\mbox{\hyperlink{classfz_1_1logger__interface}{logger\+\_\+interface}} const \&)=delete
\item 
\mbox{\Hypertarget{classfz_1_1logger__interface_a3eb3c07452c02a91024c9a46c2eeaeec}\label{classfz_1_1logger__interface_a3eb3c07452c02a91024c9a46c2eeaeec}} 
virtual void \mbox{\hyperlink{classfz_1_1logger__interface_a3eb3c07452c02a91024c9a46c2eeaeec}{do\+\_\+log}} (\mbox{\hyperlink{logger_8hpp_a6a45d16d760a1ff1e55a84070b48aca0}{logmsg\+::type}} t, std\+::wstring \&\&msg)=0
\begin{DoxyCompactList}\small\item\em The one thing you need to override. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename String , typename... Args$>$ }\\void \mbox{\hyperlink{classfz_1_1logger__interface_a09fd010628a504e96abab6908dff8194}{log}} (\mbox{\hyperlink{logger_8hpp_a6a45d16d760a1ff1e55a84070b48aca0}{logmsg\+::type}} t, String \&\&fmt, Args \&\&...args)
\begin{DoxyCompactList}\small\item\em The. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classfz_1_1logger__interface_a26a5d4424215a3b1709f099164fc530f}\label{classfz_1_1logger__interface_a26a5d4424215a3b1709f099164fc530f}} 
{\footnotesize template$<$typename String $>$ }\\void \mbox{\hyperlink{classfz_1_1logger__interface_a26a5d4424215a3b1709f099164fc530f}{log\+\_\+raw}} (\mbox{\hyperlink{logger_8hpp_a6a45d16d760a1ff1e55a84070b48aca0}{logmsg\+::type}} t, String \&\&msg)
\begin{DoxyCompactList}\small\item\em Logs the raw string, it is not treated as format string. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classfz_1_1logger__interface_ae7daae6e3b947a1ca6783c30dd5acb81}\label{classfz_1_1logger__interface_ae7daae6e3b947a1ca6783c30dd5acb81}} 
bool {\bfseries should\+\_\+log} (\mbox{\hyperlink{logger_8hpp_a6a45d16d760a1ff1e55a84070b48aca0}{logmsg\+::type}} t) const
\item 
\mbox{\Hypertarget{classfz_1_1logger__interface_adc810c510342e343ad84cdcd4e4ac141}\label{classfz_1_1logger__interface_adc810c510342e343ad84cdcd4e4ac141}} 
void \mbox{\hyperlink{classfz_1_1logger__interface_adc810c510342e343ad84cdcd4e4ac141}{set\+\_\+all}} (\mbox{\hyperlink{logger_8hpp_a6a45d16d760a1ff1e55a84070b48aca0}{logmsg\+::type}} t)
\begin{DoxyCompactList}\small\item\em Sets which message types should be logged. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classfz_1_1logger__interface_a2cbd4bc930998e808171a5fa1fa77bf5}\label{classfz_1_1logger__interface_a2cbd4bc930998e808171a5fa1fa77bf5}} 
void \mbox{\hyperlink{classfz_1_1logger__interface_a2cbd4bc930998e808171a5fa1fa77bf5}{set}} (\mbox{\hyperlink{logger_8hpp_a6a45d16d760a1ff1e55a84070b48aca0}{logmsg\+::type}} t, bool flag)
\begin{DoxyCompactList}\small\item\em Sets whether the given types should be logged. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classfz_1_1logger__interface_a1808fc4eac7d82658c42765dc6b5b57a}\label{classfz_1_1logger__interface_a1808fc4eac7d82658c42765dc6b5b57a}} 
void \mbox{\hyperlink{classfz_1_1logger__interface_a1808fc4eac7d82658c42765dc6b5b57a}{enable}} (\mbox{\hyperlink{logger_8hpp_a6a45d16d760a1ff1e55a84070b48aca0}{logmsg\+::type}} t)
\begin{DoxyCompactList}\small\item\em Enables logging for the passed message types. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classfz_1_1logger__interface_ad469dd596b8a745385e5bbd54f1b7a4d}\label{classfz_1_1logger__interface_ad469dd596b8a745385e5bbd54f1b7a4d}} 
void \mbox{\hyperlink{classfz_1_1logger__interface_ad469dd596b8a745385e5bbd54f1b7a4d}{disable}} (\mbox{\hyperlink{logger_8hpp_a6a45d16d760a1ff1e55a84070b48aca0}{logmsg\+::type}} t)
\begin{DoxyCompactList}\small\item\em Disables logging for the passed message types. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classfz_1_1logger__interface_a29da17749fa7fc062e239d3e718faf73}\label{classfz_1_1logger__interface_a29da17749fa7fc062e239d3e718faf73}} 
std\+::atomic$<$ uint64\+\_\+t $>$ {\bfseries level\+\_\+} \{logmsg\+::status $\vert$ logmsg\+::error $\vert$ logmsg\+::command $\vert$ logmsg\+::reply\}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Abstract interface for logging strings. 

Each log message has a type. Logging can be enabled or disabled for each type.

The actual string to log gets assembled from the format string and its arguments only if the type is supposed to be logged. 

\subsection{Member Function Documentation}
\mbox{\Hypertarget{classfz_1_1logger__interface_a09fd010628a504e96abab6908dff8194}\label{classfz_1_1logger__interface_a09fd010628a504e96abab6908dff8194}} 
\index{logger\_interface@{logger\_interface}!log@{log}}
\index{log@{log}!logger\_interface@{logger\_interface}}
\subsubsection{\texorpdfstring{log()}{log()}}
{\footnotesize\ttfamily void log (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{logger_8hpp_a6a45d16d760a1ff1e55a84070b48aca0}{logmsg\+::type}}}]{t,  }\item[{String \&\&}]{fmt,  }\item[{Args \&\&...}]{args }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



The. 

\begin{DoxyItemize}
\item fmt argument is a format string suitable for \mbox{\hyperlink{namespacefz_a86cd7a4e0909090a6315fe8bd63a1159}{fz\+::sprintf}} \end{DoxyItemize}


The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{logger_8hpp}{logger.\+hpp}}\end{DoxyCompactItemize}