Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
WsgiErrorStream

Represents the wsgi.errors stream to write error messages. More...

Classes

class  XBMCAddon::xbmcwsgi::WsgiErrorStream
 

Functions

 XBMCAddon::xbmcwsgi::WsgiErrorStream::flush ()
 
 XBMCAddon::xbmcwsgi::WsgiErrorStream::write (...)
 
 XBMCAddon::xbmcwsgi::WsgiErrorStream::writelines (...)
 

Detailed Description

Represents the wsgi.errors stream to write error messages.

Class: WsgiErrorStream()

This implementation writes the error messages to the application's log file.


Function Documentation

◆ flush()

XBMCAddon::xbmcwsgi::WsgiErrorStream::flush ( )

\htmlonly <h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font color=31363b><big> flush() </big></font></span></code></h4> \endhtmlonly

Since nothing is buffered this is a no-op.

◆ write()

void XBMCAddon::xbmcwsgi::WsgiErrorStream::write (   ...)

\htmlonly <h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font color=31363b><big> write(str) </big></font></span></code></h4> \endhtmlonly

Writes the given error message to the application's log file.

A trailing \n is removed.

Parameters
strA string to save in log file

◆ writelines()

void XBMCAddon::xbmcwsgi::WsgiErrorStream::writelines (   ...)

\htmlonly <h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font color=31363b><big> writelines(seq) </big></font></span></code></h4> \endhtmlonly

Joins the given list of error messages (without any separator) into a single error message which is written to the application's log file.

Parameters
seqA list of strings which will be logged.