\doxysection{include/osmocom/vty/logging.h File Reference}
\label{logging_8h}\index{include/osmocom/vty/logging.h@{include/osmocom/vty/logging.h}}
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \textbf{ LOGGING\+\_\+\+STR}~\char`\"{}Configure \textbf{ logging\textbackslash{}n}\char`\"{}
\item 
\#define \textbf{ FILTER\+\_\+\+STR}~\char`\"{}Filter log \textbf{ messages\textbackslash{}n}\char`\"{}
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \textbf{ logging\+\_\+vty\+\_\+add\+\_\+cmds} ()
\begin{DoxyCompactList}\small\item\em Register logging related commands to the VTY. \end{DoxyCompactList}\item 
void \textbf{ logging\+\_\+vty\+\_\+add\+\_\+deprecated\+\_\+subsys} (void $\ast$ctx, const char $\ast$\textbf{ name})
\item 
struct \textbf{ log\+\_\+target} $\ast$ \textbf{ osmo\+\_\+log\+\_\+vty2tgt} (struct \textbf{ vty} $\ast$\textbf{ vty})
\begin{DoxyCompactList}\small\item\em Get log target associated to VTY console. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Macro Definition Documentation}
\mbox{\label{logging_8h_a6ac6ba6ac862de67276ce6cd995e77b3}} 
\index{logging.h@{logging.h}!FILTER\_STR@{FILTER\_STR}}
\index{FILTER\_STR@{FILTER\_STR}!logging.h@{logging.h}}
\doxysubsubsection{FILTER\_STR}
{\footnotesize\ttfamily \#define FILTER\+\_\+\+STR~\char`\"{}Filter log \textbf{ messages\textbackslash{}n}\char`\"{}}

\mbox{\label{logging_8h_ada00f7d5e9e0e6b1a84284ae28a8cb32}} 
\index{logging.h@{logging.h}!LOGGING\_STR@{LOGGING\_STR}}
\index{LOGGING\_STR@{LOGGING\_STR}!logging.h@{logging.h}}
\doxysubsubsection{LOGGING\_STR}
{\footnotesize\ttfamily \#define LOGGING\+\_\+\+STR~\char`\"{}Configure \textbf{ logging\textbackslash{}n}\char`\"{}}



\doxysubsection{Function Documentation}
\mbox{\label{logging_8h_a5610a262fb3d69505b72a24f05fc5982}} 
\index{logging.h@{logging.h}!logging\_vty\_add\_cmds@{logging\_vty\_add\_cmds}}
\index{logging\_vty\_add\_cmds@{logging\_vty\_add\_cmds}!logging.h@{logging.h}}
\doxysubsubsection{logging\_vty\_add\_cmds()}
{\footnotesize\ttfamily void logging\+\_\+vty\+\_\+add\+\_\+cmds (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Register logging related commands to the VTY. 

Call this once from your application if you want to support those commands. 

References \textbf{ CFG\+\_\+\+LOG\+\_\+\+NODE}, \textbf{ cfg\+\_\+log\+\_\+node}, \textbf{ CONFIG\+\_\+\+NODE}, \textbf{ config\+\_\+write\+\_\+log()}, \textbf{ EVERYTHING\+\_\+\+STR}, \textbf{ gen\+\_\+logging\+\_\+level\+\_\+cmd\+\_\+strs()}, \textbf{ gen\+\_\+vty\+\_\+logp\+\_\+cmd\+\_\+strs()}, \textbf{ install\+\_\+lib\+\_\+element()}, \textbf{ install\+\_\+lib\+\_\+element\+\_\+ve()}, \textbf{ install\+\_\+node()}, \textbf{ LOG\+\_\+\+LEVEL\+\_\+\+ARGS}, and \textbf{ LOG\+\_\+\+LEVEL\+\_\+\+STRS}.

\mbox{\label{logging_8h_ab5a144c85374d5ea131460b513323388}} 
\index{logging.h@{logging.h}!logging\_vty\_add\_deprecated\_subsys@{logging\_vty\_add\_deprecated\_subsys}}
\index{logging\_vty\_add\_deprecated\_subsys@{logging\_vty\_add\_deprecated\_subsys}!logging.h@{logging.h}}
\doxysubsubsection{logging\_vty\_add\_deprecated\_subsys()}
{\footnotesize\ttfamily void logging\+\_\+vty\+\_\+add\+\_\+deprecated\+\_\+subsys (\begin{DoxyParamCaption}\item[{void $\ast$}]{ctx,  }\item[{const char $\ast$}]{name }\end{DoxyParamCaption})}



References \textbf{ cmd\+\_\+element\+::attr}, \textbf{ CFG\+\_\+\+LOG\+\_\+\+NODE}, \textbf{ CMD\+\_\+\+ATTR\+\_\+\+DEPRECATED}, \textbf{ cmd\+\_\+element\+::doc}, \textbf{ cmd\+\_\+element\+::func}, \textbf{ install\+\_\+lib\+\_\+element()}, \textbf{ LEVEL\+\_\+\+STR}, \textbf{ log\+\_\+deprecated\+\_\+func()}, \textbf{ LOG\+\_\+\+LEVEL\+\_\+\+ARGS}, \textbf{ name}, \textbf{ OSMO\+\_\+\+ASSERT}, and \textbf{ cmd\+\_\+element\+::string}.

\mbox{\label{logging_8h_a0a5c30bbfbb9a192365ac16ed7943fc3}} 
\index{logging.h@{logging.h}!osmo\_log\_vty2tgt@{osmo\_log\_vty2tgt}}
\index{osmo\_log\_vty2tgt@{osmo\_log\_vty2tgt}!logging.h@{logging.h}}
\doxysubsubsection{osmo\_log\_vty2tgt()}
{\footnotesize\ttfamily struct \textbf{ log\+\_\+target} $\ast$ osmo\+\_\+log\+\_\+vty2tgt (\begin{DoxyParamCaption}\item[{struct \textbf{ vty} $\ast$}]{vty }\end{DoxyParamCaption})}



Get log target associated to VTY console. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em vty} & Log target type \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Log target (if logging enabled), NULL otherwise Must be called with mutex osmo\+\_\+log\+\_\+tgt\+\_\+mutex held, see log\+\_\+tgt\+\_\+mutex\+\_\+lock. 
\end{DoxyReturn}


References \textbf{ CFG\+\_\+\+LOG\+\_\+\+NODE}, \textbf{ telnet\+\_\+connection\+::dbg}, \textbf{ if()}, \textbf{ vty\+::index}, \textbf{ vty\+::node}, \textbf{ vty\+::priv}, \textbf{ VTY\+\_\+\+NEWLINE}, and \textbf{ vty\+\_\+out()}.

