WebRTC Video Chat 1.1.4
Loading...
Searching...
No Matches
Byn.Awrtc.SLogger Class Reference

Adds a prefix to log messages to show the relationship between objects doing the logging. More...

Public Member Functions

 SLogger (string prefix)
 Creates a new logger with the given prefix.
 
SLogger CreateSub (string subPrefix)
 Creates new sub-logger that combines its own prefix with the base logger using the pattern "baseprefix.subprefix:" log message.
 
void L (string txt)
 Logs a message.
 
void LW (string txt)
 Logs a warning.
 
void LE (string txt)
 Logs an error message.
 
void LogException (Exception e)
 Logs an exception.
 

Properties

string Prefix [get, set]
 String used as prefix for all log messages.
 

Detailed Description

Adds a prefix to log messages to show the relationship between objects doing the logging.

Constructor & Destructor Documentation

◆ SLogger()

Byn.Awrtc.SLogger.SLogger ( string prefix)

Creates a new logger with the given prefix.

Parameters
prefixstring used as prefix.

Member Function Documentation

◆ CreateSub()

SLogger Byn.Awrtc.SLogger.CreateSub ( string subPrefix)

Creates new sub-logger that combines its own prefix with the base logger using the pattern "baseprefix.subprefix:" log message.

Parameters
subPrefixPrefix to append
Returns
New logger

◆ L()

void Byn.Awrtc.SLogger.L ( string txt)

Logs a message.

Parameters
txt

◆ LE()

void Byn.Awrtc.SLogger.LE ( string txt)

Logs an error message.

Parameters
txt

◆ LogException()

void Byn.Awrtc.SLogger.LogException ( Exception e)

Logs an exception.

Parameters
eException to log.

◆ LW()

void Byn.Awrtc.SLogger.LW ( string txt)

Logs a warning.

Parameters
txt

The documentation for this class was generated from the following file: