ThingsBoard Client SDK 0.16.0
Client SDK to connect with ThingsBoard IoT Platform from IoT devices (Arduino, Espressif, etc.)
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
DefaultLogger Class Reference

Default logger class used by the ThingsBoard class to log messages into the console output. More...

#include <DefaultLogger.h>

Static Public Member Functions

template<typename ... Args>
static int printfln (char const *format, Args const &... args)
 Prints the given format message containing format specifiers (subsequences beginning with %) as well as a new line character at the end of the message. If no additional arguments are given it simply prints the given format messsage. More...
 

Detailed Description

Default logger class used by the ThingsBoard class to log messages into the console output.

Member Function Documentation

◆ printfln()

template<typename ... Args>
static int DefaultLogger::printfln ( char const *  format,
Args const &...  args 
)
inlinestatic

Prints the given format message containing format specifiers (subsequences beginning with %) as well as a new line character at the end of the message. If no additional arguments are given it simply prints the given format messsage.

Template Parameters
...ArgsAdditional arguments formatted and inserted in the resulting string replacing their respective specifiers. See https://cplusplus.com/reference/cstdio/printf/ for more information on the possible format specifiers and the corresponding argument type
Parameters
formatFormatting message that the given arguments will be inserted into
...argsArguments that will be formatted and inserted into the resulting string, replacing their respective specifiers
Returns
Either the written amount of characters or an error indicator (being a negative number) if one occured

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