\hypertarget{classLoggerClass}{\section{\-Logger\-Class \-Class \-Reference}
\label{classLoggerClass}\index{\-Logger\-Class@{\-Logger\-Class}}
}


{\ttfamily \#include $<$\-Logger.\-h$>$}

\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classLoggerClass_aee6c28e9a84743220cdc7280865f2b5b}{\-Logger\-Class} ()
\item 
void \hyperlink{classLoggerClass_ab17dee0edea6c560fdd953c1ad0ed4eb}{log} (const std\-::string \&message, int level=0)
\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}


\-Definition at line 35 of file \-Logger.\-h.



\subsection{\-Constructor \& \-Destructor \-Documentation}
\hypertarget{classLoggerClass_aee6c28e9a84743220cdc7280865f2b5b}{\index{\-Logger\-Class@{\-Logger\-Class}!\-Logger\-Class@{\-Logger\-Class}}
\index{\-Logger\-Class@{\-Logger\-Class}!LoggerClass@{\-Logger\-Class}}
\subsubsection[{\-Logger\-Class}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-Logger\-Class\-::\-Logger\-Class} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{classLoggerClass_aee6c28e9a84743220cdc7280865f2b5b}


\-Definition at line 38 of file \-Logger.\-h.


\begin{DoxyCode}
        {
#if _DEBUG
                std::ofstream output("bwapi-data\\Skynet\\SkynetLog.txt", 
      std::ios::trunc);
                output.close();
#endif
        }
\end{DoxyCode}


\subsection{\-Member \-Function \-Documentation}
\hypertarget{classLoggerClass_ab17dee0edea6c560fdd953c1ad0ed4eb}{\index{\-Logger\-Class@{\-Logger\-Class}!log@{log}}
\index{log@{log}!LoggerClass@{\-Logger\-Class}}
\subsubsection[{log}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Logger\-Class\-::log} (
\begin{DoxyParamCaption}
\item[{const std\-::string \&}]{message, }
\item[{int}]{level = {\ttfamily 0}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{classLoggerClass_ab17dee0edea6c560fdd953c1ad0ed4eb}


\-Definition at line 46 of file \-Logger.\-h.



\-References \-B\-W\-A\-P\-I\-::\-Broodwar, \-B\-W\-A\-P\-I\-::\-Game\-::get\-Frame\-Count(), \-B\-W\-A\-P\-I\-::\-Game\-::printf(), and \-B\-W\-A\-P\-I\-::\-Game\-::send\-Text().


\begin{DoxyCode}
        {
                if(level > 1)
                        BWAPI::Broodwar->sendText(message.c_str());
                else if(level > 0)
                        BWAPI::Broodwar->printf(message.c_str());

#if _DEBUG
                std::ofstream output("bwapi-data\\Skynet\\SkynetLog.txt", 
      std::ios::ate | std::ios::app);
                output << BWAPI::Broodwar->getFrameCount() << " : " << message 
      << std::endl;
                output.close();
#endif
        }
\end{DoxyCode}


\-Here is the call graph for this function\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classLoggerClass_ab17dee0edea6c560fdd953c1ad0ed4eb_cgraph}
\end{center}
\end{figure}




\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
\-Skynet/\-Skynet/\hyperlink{Logger_8h}{\-Logger.\-h}\end{DoxyCompactItemize}
