classutil_1_1Logger.tex 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. \hypertarget{classutil_1_1Logger}{}\section{util\+:\+:Logger Class Reference}
  2. \label{classutil_1_1Logger}\index{util\+::\+Logger@{util\+::\+Logger}}
  3. {\ttfamily \#include $<$Logger.\+h$>$}
  4. \subsection*{Public Member Functions}
  5. \begin{DoxyCompactItemize}
  6. \item
  7. \hyperlink{classutil_1_1Logger_a83d4f38e648b39fa61a2b9b3172bda12}{Logger} (\hyperlink{classutil_1_1Logger}{Logger} const \&)=delete
  8. \item
  9. void \hyperlink{classutil_1_1Logger_a4e9e8b8d0e75058265037976d9b256de}{operator=} (\hyperlink{classutil_1_1Logger}{Logger} const \&)=delete
  10. \end{DoxyCompactItemize}
  11. \subsection*{Static Public Member Functions}
  12. \begin{DoxyCompactItemize}
  13. \item
  14. static \hyperlink{classutil_1_1Logger}{Logger} \& \hyperlink{classutil_1_1Logger_a734bbf94e1232706f7c0bf52745cc876}{Instance} ()
  15. \item
  16. static void \hyperlink{classutil_1_1Logger_ac7b9bc580a6d459c212c46b137742869}{Set\+Debug} (bool debug)
  17. \item
  18. static void \hyperlink{classutil_1_1Logger_a3965358e412007989f90798e295d4b41}{Set\+Info} (bool info)
  19. \item
  20. static bool \hyperlink{classutil_1_1Logger_a6ee9298451936b98815e20ba7f5d7275}{Is\+Debug\+Enabled} ()
  21. \item
  22. static bool \hyperlink{classutil_1_1Logger_a194b338af92760d0f7d15b607cad5429}{Is\+Info\+Enabled} ()
  23. \item
  24. static void \hyperlink{classutil_1_1Logger_a65ac30aaefded61036771197f1364bb8}{Log\+Info} (std\+::string const \&message)
  25. \item
  26. static void \hyperlink{classutil_1_1Logger_a5a49cf31bcd5a0ccbfe11667b37f338a}{Log\+Error} (std\+::string const \&message)
  27. \item
  28. static void \hyperlink{classutil_1_1Logger_a89b67d19ea6650ed313dffc0a599385a}{Log\+Debug} (std\+::string const \&message)
  29. \end{DoxyCompactItemize}
  30. \subsection{Detailed Description}
  31. Utility class for logging. Is a singleton. Provides three different types of messages.
  32. \subsection{Constructor \& Destructor Documentation}
  33. \index{util\+::\+Logger@{util\+::\+Logger}!Logger@{Logger}}
  34. \index{Logger@{Logger}!util\+::\+Logger@{util\+::\+Logger}}
  35. \subsubsection[{\texorpdfstring{Logger(\+Logger const \&)=delete}{Logger(Logger const \&)=delete}}]{\setlength{\rightskip}{0pt plus 5cm}util\+::\+Logger\+::\+Logger (
  36. \begin{DoxyParamCaption}
  37. \item[{{\bf Logger} const \&}]{}
  38. \end{DoxyParamCaption}
  39. )\hspace{0.3cm}{\ttfamily [delete]}}\hypertarget{classutil_1_1Logger_a83d4f38e648b39fa61a2b9b3172bda12}{}\label{classutil_1_1Logger_a83d4f38e648b39fa61a2b9b3172bda12}
  40. -\/$>$ Singleton
  41. \subsection{Member Function Documentation}
  42. \index{util\+::\+Logger@{util\+::\+Logger}!Instance@{Instance}}
  43. \index{Instance@{Instance}!util\+::\+Logger@{util\+::\+Logger}}
  44. \subsubsection[{\texorpdfstring{Instance()}{Instance()}}]{\setlength{\rightskip}{0pt plus 5cm}static {\bf Logger}\& util\+::\+Logger\+::\+Instance (
  45. \begin{DoxyParamCaption}
  46. {}
  47. \end{DoxyParamCaption}
  48. )\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}\hypertarget{classutil_1_1Logger_a734bbf94e1232706f7c0bf52745cc876}{}\label{classutil_1_1Logger_a734bbf94e1232706f7c0bf52745cc876}
  49. Gets T\+HE instance of this singleton. Creates a new instance if not already created. \index{util\+::\+Logger@{util\+::\+Logger}!Is\+Debug\+Enabled@{Is\+Debug\+Enabled}}
  50. \index{Is\+Debug\+Enabled@{Is\+Debug\+Enabled}!util\+::\+Logger@{util\+::\+Logger}}
  51. \subsubsection[{\texorpdfstring{Is\+Debug\+Enabled()}{IsDebugEnabled()}}]{\setlength{\rightskip}{0pt plus 5cm}bool util\+::\+Logger\+::\+Is\+Debug\+Enabled (
  52. \begin{DoxyParamCaption}
  53. {}
  54. \end{DoxyParamCaption}
  55. )\hspace{0.3cm}{\ttfamily [static]}}\hypertarget{classutil_1_1Logger_a6ee9298451936b98815e20ba7f5d7275}{}\label{classutil_1_1Logger_a6ee9298451936b98815e20ba7f5d7275}
  56. If the debug messages are logged. \begin{DoxyReturn}{Returns}
  57. True, if the debug messages are logged
  58. \end{DoxyReturn}
  59. \index{util\+::\+Logger@{util\+::\+Logger}!Is\+Info\+Enabled@{Is\+Info\+Enabled}}
  60. \index{Is\+Info\+Enabled@{Is\+Info\+Enabled}!util\+::\+Logger@{util\+::\+Logger}}
  61. \subsubsection[{\texorpdfstring{Is\+Info\+Enabled()}{IsInfoEnabled()}}]{\setlength{\rightskip}{0pt plus 5cm}bool util\+::\+Logger\+::\+Is\+Info\+Enabled (
  62. \begin{DoxyParamCaption}
  63. {}
  64. \end{DoxyParamCaption}
  65. )\hspace{0.3cm}{\ttfamily [static]}}\hypertarget{classutil_1_1Logger_a194b338af92760d0f7d15b607cad5429}{}\label{classutil_1_1Logger_a194b338af92760d0f7d15b607cad5429}
  66. If the info messages are logged. \begin{DoxyReturn}{Returns}
  67. True, if the info messages are logged
  68. \end{DoxyReturn}
  69. \index{util\+::\+Logger@{util\+::\+Logger}!Log\+Debug@{Log\+Debug}}
  70. \index{Log\+Debug@{Log\+Debug}!util\+::\+Logger@{util\+::\+Logger}}
  71. \subsubsection[{\texorpdfstring{Log\+Debug(std\+::string const \&message)}{LogDebug(std::string const \&message)}}]{\setlength{\rightskip}{0pt plus 5cm}void util\+::\+Logger\+::\+Log\+Debug (
  72. \begin{DoxyParamCaption}
  73. \item[{std\+::string const \&}]{message}
  74. \end{DoxyParamCaption}
  75. )\hspace{0.3cm}{\ttfamily [static]}}\hypertarget{classutil_1_1Logger_a89b67d19ea6650ed313dffc0a599385a}{}\label{classutil_1_1Logger_a89b67d19ea6650ed313dffc0a599385a}
  76. Logs the given message as an debug message.
  77. \begin{DoxyParams}{Parameters}
  78. {\em message} & The debug message to log \\
  79. \hline
  80. \end{DoxyParams}
  81. \index{util\+::\+Logger@{util\+::\+Logger}!Log\+Error@{Log\+Error}}
  82. \index{Log\+Error@{Log\+Error}!util\+::\+Logger@{util\+::\+Logger}}
  83. \subsubsection[{\texorpdfstring{Log\+Error(std\+::string const \&message)}{LogError(std::string const \&message)}}]{\setlength{\rightskip}{0pt plus 5cm}void util\+::\+Logger\+::\+Log\+Error (
  84. \begin{DoxyParamCaption}
  85. \item[{std\+::string const \&}]{message}
  86. \end{DoxyParamCaption}
  87. )\hspace{0.3cm}{\ttfamily [static]}}\hypertarget{classutil_1_1Logger_a5a49cf31bcd5a0ccbfe11667b37f338a}{}\label{classutil_1_1Logger_a5a49cf31bcd5a0ccbfe11667b37f338a}
  88. Logs the given message as an error message.
  89. \begin{DoxyParams}{Parameters}
  90. {\em message} & The error message to log \\
  91. \hline
  92. \end{DoxyParams}
  93. \index{util\+::\+Logger@{util\+::\+Logger}!Log\+Info@{Log\+Info}}
  94. \index{Log\+Info@{Log\+Info}!util\+::\+Logger@{util\+::\+Logger}}
  95. \subsubsection[{\texorpdfstring{Log\+Info(std\+::string const \&message)}{LogInfo(std::string const \&message)}}]{\setlength{\rightskip}{0pt plus 5cm}void util\+::\+Logger\+::\+Log\+Info (
  96. \begin{DoxyParamCaption}
  97. \item[{std\+::string const \&}]{message}
  98. \end{DoxyParamCaption}
  99. )\hspace{0.3cm}{\ttfamily [static]}}\hypertarget{classutil_1_1Logger_a65ac30aaefded61036771197f1364bb8}{}\label{classutil_1_1Logger_a65ac30aaefded61036771197f1364bb8}
  100. Logs the given message as an info message.
  101. \begin{DoxyParams}{Parameters}
  102. {\em message} & The info message to log \\
  103. \hline
  104. \end{DoxyParams}
  105. \index{util\+::\+Logger@{util\+::\+Logger}!operator=@{operator=}}
  106. \index{operator=@{operator=}!util\+::\+Logger@{util\+::\+Logger}}
  107. \subsubsection[{\texorpdfstring{operator=(\+Logger const \&)=delete}{operator=(Logger const \&)=delete}}]{\setlength{\rightskip}{0pt plus 5cm}void util\+::\+Logger\+::operator= (
  108. \begin{DoxyParamCaption}
  109. \item[{{\bf Logger} const \&}]{}
  110. \end{DoxyParamCaption}
  111. )\hspace{0.3cm}{\ttfamily [delete]}}\hypertarget{classutil_1_1Logger_a4e9e8b8d0e75058265037976d9b256de}{}\label{classutil_1_1Logger_a4e9e8b8d0e75058265037976d9b256de}
  112. -\/$>$ Singleton \index{util\+::\+Logger@{util\+::\+Logger}!Set\+Debug@{Set\+Debug}}
  113. \index{Set\+Debug@{Set\+Debug}!util\+::\+Logger@{util\+::\+Logger}}
  114. \subsubsection[{\texorpdfstring{Set\+Debug(bool debug)}{SetDebug(bool debug)}}]{\setlength{\rightskip}{0pt plus 5cm}void util\+::\+Logger\+::\+Set\+Debug (
  115. \begin{DoxyParamCaption}
  116. \item[{bool}]{debug}
  117. \end{DoxyParamCaption}
  118. )\hspace{0.3cm}{\ttfamily [static]}}\hypertarget{classutil_1_1Logger_ac7b9bc580a6d459c212c46b137742869}{}\label{classutil_1_1Logger_ac7b9bc580a6d459c212c46b137742869}
  119. Sets the debug message logging.
  120. \begin{DoxyParams}{Parameters}
  121. {\em debug} & True, if the debug messages should be logged \\
  122. \hline
  123. \end{DoxyParams}
  124. \index{util\+::\+Logger@{util\+::\+Logger}!Set\+Info@{Set\+Info}}
  125. \index{Set\+Info@{Set\+Info}!util\+::\+Logger@{util\+::\+Logger}}
  126. \subsubsection[{\texorpdfstring{Set\+Info(bool info)}{SetInfo(bool info)}}]{\setlength{\rightskip}{0pt plus 5cm}void util\+::\+Logger\+::\+Set\+Info (
  127. \begin{DoxyParamCaption}
  128. \item[{bool}]{info}
  129. \end{DoxyParamCaption}
  130. )\hspace{0.3cm}{\ttfamily [static]}}\hypertarget{classutil_1_1Logger_a3965358e412007989f90798e295d4b41}{}\label{classutil_1_1Logger_a3965358e412007989f90798e295d4b41}
  131. Sets the info message logging.
  132. \begin{DoxyParams}{Parameters}
  133. {\em info} & True, if the info messages should be logged \\
  134. \hline
  135. \end{DoxyParams}
  136. The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
  137. \item
  138. util/Logger.\+h\item
  139. util/Logger.\+cpp\end{DoxyCompactItemize}