Louvre  v2.9.0-1
C++ library for Wayland compositors
Static Public Member Functions | List of all members
LLog Class Reference

Debugging information. More...

Static Public Member Functions

static void init ()
 
static void log (const char *format,...)
 Prints general messages independent of the value of LOUVRE_DEBUG. More...
 
static void fatal (const char *format,...)
 Reports an unrecoverable error. LOUVRE_DEBUG >= 1. More...
 
static void error (const char *format,...)
 Reports a nonfatal error. LOUVRE_DEBUG >= 2. More...
 
static void warning (const char *format,...)
 Messages that report a risk for the compositor. LOUVRE_DEBUG >= 3. More...
 
static void debug (const char *format,...)
 Debugging messages. LOUVRE_DEBUG >= 4. More...
 

Detailed Description

Debugging information.

The LLog class provides an output stream for debugging information.
The level of verbosity can be assigned setting the LOUVRE_DEBUG environment variable to a non negative integer value.
All messages are directed to the stdout stream, except for those generated by error() and fatal(), which are written to the stderr stream.

Verbosity levels

LOUVRE_DEBUG=0

Disables messages except those generated by log().

LOUVRE_DEBUG=1

Prints messages generated by log() and fatal().

LOUVRE_DEBUG=2

Prints messages generated by log(), fatal() and error().

LOUVRE_DEBUG=3

Prints messages generated by log(), fatal(), error() and warning().

LOUVRE_DEBUG=4

Prints messages generated by log(), fatal(), error(), warning() and debug().

Member Function Documentation

◆ init()

void init ( )
static

Call this method to print messages before creating an LCompositor instance.

◆ log()

void log ( const char *  format,
  ... 
)
static

Prints general messages independent of the value of LOUVRE_DEBUG.

◆ fatal()

void fatal ( const char *  format,
  ... 
)
static

Reports an unrecoverable error. LOUVRE_DEBUG >= 1.

◆ error()

void error ( const char *  format,
  ... 
)
static

Reports a nonfatal error. LOUVRE_DEBUG >= 2.

◆ warning()

void warning ( const char *  format,
  ... 
)
static

Messages that report a risk for the compositor. LOUVRE_DEBUG >= 3.

◆ debug()

void debug ( const char *  format,
  ... 
)
static

Debugging messages. LOUVRE_DEBUG >= 4.