|
M5Unified
|
#include <Log_Class.hpp>
Public Member Functions | |
| void | operator() (esp_log_level_t level, const char *format,...) |
| Output log. More... | |
| void | printf (const char *format,...) |
| void | print (const char *string) |
| void | println (const char *string) |
| void | println (void) |
| void | setEnableColor (log_target_t target, bool enable) |
| Set whether or not to change the color for each log level. More... | |
| bool | getEnableColor (log_target_t target) const |
| Get whether or not to change the color for each log level. More... | |
| void | setLogLevel (log_target_t target, esp_log_level_t level) |
| Set log level. More... | |
| esp_log_level_t | getLogLevel (log_target_t target) const |
| Get log level for serial output. More... | |
| void | setSuffix (log_target_t target, const char *suffix) |
| Set the text to be added to the end of the log. More... | |
| void | setCallback (std::function< void(esp_log_level_t log_level, bool use_color, const char *log_text)> function) |
| void | setDisplay (M5GFX *target) |
| void | setDisplay (M5GFX &target) |
Static Public Member Functions | |
| static const char * | pathToFileName (const char *path) |
| not for use. More... | |
Definition at line 48 of file Log_Class.hpp.
|
inline |
Get whether or not to change the color for each log level.
Definition at line 74 of file Log_Class.hpp.
|
inline |
Get log level for serial output.
Definition at line 80 of file Log_Class.hpp.
| void m5::Log_Class::operator() | ( | esp_log_level_t | level, |
| const char * | format, | ||
| ... | |||
| ) |
Output log.
Definition at line 35 of file Log_Class.cpp.
|
static |
not for use.
Definition at line 18 of file Log_Class.cpp.
|
inline |
Output text.
Definition at line 60 of file Log_Class.hpp.

| void m5::Log_Class::printf | ( | const char * | format, |
| ... | |||
| ) |
Output text in a specified format.
Definition at line 44 of file Log_Class.cpp.

|
inline |
Output text with line feeds.
Definition at line 64 of file Log_Class.hpp.

|
inline |
Output line feeds.
Definition at line 68 of file Log_Class.hpp.

|
inline |
set logging callback function / functor .
| function | Pointer to a user-defined function that takes three arguments: esp_log_level_t , bool, const char*. |
Definition at line 87 of file Log_Class.hpp.
|
inline |
Set the display to show logs.
| target | target display. |
Definition at line 95 of file Log_Class.hpp.


| void m5::Log_Class::setDisplay | ( | M5GFX * | target | ) |
Set the display to show logs.
| target | target display. |
Definition at line 144 of file Log_Class.cpp.

|
inline |
Set whether or not to change the color for each log level.
Definition at line 71 of file Log_Class.hpp.
|
inline |
Set log level.
Definition at line 77 of file Log_Class.hpp.
|
inline |
Set the text to be added to the end of the log.
Definition at line 83 of file Log_Class.hpp.