\doxysection{src/core/logging\+\_\+emscripten.c File Reference}
\label{logging__emscripten_8c}\index{src/core/logging\_emscripten.c@{src/core/logging\_emscripten.c}}


Logging support code using a JS callback.  


{\ttfamily \#include $<$stdarg.\+h$>$}\newline
{\ttfamily \#include $<$stdio.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/utils.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/logging.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/logging\+\_\+internal.\+h$>$}\newline
{\ttfamily \#include $<$emscripten.\+h$>$}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ EM\+\_\+\+JS} (void, on\+\_\+log\+\_\+wrapper,(const char $\ast$\textbf{ subsys}, int \textbf{ level}, const char $\ast$\textbf{ msg}), \{ return on\+\_\+log(\textbf{ subsys}, \textbf{ level}, \textbf{ msg});\})
\item 
static void \textbf{ \+\_\+emscripten\+\_\+raw\+\_\+output} (struct \textbf{ log\+\_\+target} $\ast$target, int \textbf{ subsys}, unsigned int \textbf{ level}, const char $\ast$\textbf{ file}, int line, int cont, const char $\ast$format, va\+\_\+list ap)
\item 
struct \textbf{ log\+\_\+target} $\ast$ \textbf{ log\+\_\+target\+\_\+create\+\_\+emscripten} (void)
\begin{DoxyCompactList}\small\item\em Create a new logging target for JS callback logging (uses {\ttfamily on\+\_\+log}) \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Logging support code using a JS callback. 

This module sends log messages to a Java\+Script callback named {\ttfamily on\+\_\+log} with interface on\+\_\+log(const char $\ast$subsys, int level, const char $\ast$msg).