core-avr-logging¶
Log¶
-
namespace
Log
¶ Functions
-
void
setFormatter
(LogFormatter *formatter)¶ Sets the formatter for logs.
- Parameters
formatter
: The formatter.
-
void
removeTarget
(LogTarget *target)¶ Removes a target from receiving logs.
- Parameters
target
: The target.
-
void
log
(const char *level, const char *category, const char *message)¶ Log!
- Parameters
level
: The level of the log.category
: The category of the log.message
: The message to log.
-
void
Logger¶
-
class
Logger
¶ Logger instance.
Public Functions
-
Logger
(const char *category)¶ New logger of a specific category.
- Parameters
category
: The category to prefix logs with.
-
void
debug
(const char *message)¶ Logs at a debug level.
- Parameters
message
: The message to log.
-
void
info
(const char *message)¶ Logs at an info level.
- Parameters
message
: The message to log.
-
void
warn
(const char *message)¶ Logs at a warn level.
- Parameters
message
: The message to log.
-
void
error
(const char *message)¶ Logs at an error level.
- Parameters
message
: The message to log.
-
LogTarget¶
-
class
LogTarget
¶ Pure virtual base class that describes the LogTarget interface.
Subclassed by ConsoleLogTarget, DummyLogTarget, FunctionPointerLogTarget, SerialLogTarget