mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Added method Logger::init() (optional)
This commit is contained in:
parent
062170c995
commit
b85fdc886b
@ -62,6 +62,8 @@ public:
|
||||
assert(getTxTimeout() == MonotonicDuration::fromMSec(DefaultTxTimeoutMs));
|
||||
}
|
||||
|
||||
int init();
|
||||
|
||||
int log(const protocol::debug::LogMessage& message);
|
||||
|
||||
LogLevel getLevel() const { return level_; }
|
||||
|
||||
@ -15,6 +15,11 @@ Logger::LogLevel Logger::getExternalSinkLevel() const
|
||||
return (external_sink_ == NULL) ? LevelAboveAll : external_sink_->getLogLevel();
|
||||
}
|
||||
|
||||
int Logger::init()
|
||||
{
|
||||
return logmsg_pub_.init();
|
||||
}
|
||||
|
||||
int Logger::log(const protocol::debug::LogMessage& message)
|
||||
{
|
||||
int retval = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user