Namespace iox

building block to easily create free function for logging in a library context

Detailed Description

//addthistoe.g.foo_logging.hpp //theloggercanthenbeusedwithe.g.foo::LogInfo()ofjustLogInfo()inthesamenamespace

#ifndefFOO_LOGGING_HPP_INCLUDED #defineFOO_LOGGING_HPP_INCLUDED

#include”iceoryx_hoofs/log/logging_free_function_building_block.hpp”

namespacefoo { structLoggingComponent { staticconstexprcharCtx[]=”FOO”; staticconstexprcharDescription[]=”LogcontextoftheFOOcomponent!”; };

staticconstexprautoLogFatal=iox::log::ffbb::LogFatal<LoggingComponent>; staticconstexprautoLogError=iox::log::ffbb::LogError<LoggingComponent>; staticconstexprautoLogWarn=iox::log::ffbb::LogWarn<LoggingComponent>; staticconstexprautoLogInfo=iox::log::ffbb::LogInfo<LoggingComponent>; staticconstexprautoLogDebug=iox::log::ffbb::LogDebug<LoggingComponent>; staticconstexprautoLogVerbose=iox::log::ffbb::LogVerbose<LoggingComponent>; }//namespacefoo #endif//FOO_LOGGING_HPP_INCLUDED

//thisneedstobeinfoo_logging.cpp

namespacefoo { constexprcharComponentPosh::Ctx[]; constexprcharComponentPosh::Description[];

}//namespacefoo

Namespaces

Classes

Enums

Functions

Typedefs

Variables