IOLink IOL_v1.8.0_release
Loading...
Searching...
No Matches
iolink::Logger Class Reference

Manage IOLink logging. More...

#include <iolink/Logger.h>

Static Public Member Functions

static void init (LogLevel level)
 Forces initialization of the logging system with a given log level.
 
static LogLevel logLevel ()
 Return the log level of the logging system.
 

Detailed Description

Manage IOLink logging.

The logging system will be initialized automatically, using the WARNING level in release and DEBUG level in debug. You can force the log level using init before any call to IOLink. If you call it after, the logging system will already be initialized, and your call will have no effect.

Member Function Documentation

◆ init()

static void iolink::Logger::init ( LogLevel  level)
static

Forces initialization of the logging system with a given log level.

This should be called before any call to IOLink.

Parameters
levelThe desired log level.
Warning
If the logging system is already initialized, its log level will not be changed.

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