\doxysection{src/core/loggingrb.c File Reference}
\label{loggingrb_8c}\index{src/core/loggingrb.c@{src/core/loggingrb.c}}


Ringbuffer-\/backed logging support code.  


{\ttfamily \#include \char`\"{}config.\+h\char`\"{}}\newline
{\ttfamily \#include $<$osmocom/core/strrb.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/logging.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/loggingrb.\+h$>$}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
static void \textbf{ \+\_\+rb\+\_\+output} (struct \textbf{ log\+\_\+target} $\ast$target, unsigned int \textbf{ level}, const char $\ast$log)
\item 
size\+\_\+t \textbf{ log\+\_\+target\+\_\+rb\+\_\+used\+\_\+size} (struct \textbf{ log\+\_\+target} const $\ast$target)
\begin{DoxyCompactList}\small\item\em Return the number of log strings in the osmo\+\_\+strrb-\/backed target. \end{DoxyCompactList}\item 
size\+\_\+t \textbf{ log\+\_\+target\+\_\+rb\+\_\+avail\+\_\+size} (struct \textbf{ log\+\_\+target} const $\ast$target)
\begin{DoxyCompactList}\small\item\em Return the capacity of the osmo\+\_\+strrb-\/backed target. \end{DoxyCompactList}\item 
const char $\ast$ \textbf{ log\+\_\+target\+\_\+rb\+\_\+get} (struct \textbf{ log\+\_\+target} const $\ast$target, size\+\_\+t logindex)
\begin{DoxyCompactList}\small\item\em Return the nth log entry in a target. \end{DoxyCompactList}\item 
struct \textbf{ log\+\_\+target} $\ast$ \textbf{ log\+\_\+target\+\_\+create\+\_\+rb} (size\+\_\+t size)
\begin{DoxyCompactList}\small\item\em Create a new logging target for ringbuffer-\/backed logging. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Ringbuffer-\/backed logging support code. 

