FARGOS/VISTA Object Management Environment Core  ..
FARGOS/VISTA Object Management Environment Core Table of Contents
AutoRegisterLogLevelName Class Reference

Convenience mechanism to automatically register a log level command line flag definition. More...

#include <logging_api.hpp>

Public Member Functions

 AutoRegisterLogLevelName (const char *name, uint32_t mask, const char *label=nullptr)
 Automatically register a log level name with the command line option parser. More...
 
 ~AutoRegisterLogLevelName ()
 

Detailed Description

Convenience mechanism to automatically register a log level command line flag definition.

Intended for use in components implemented by (shared) libraries. Invokes LogMessageRecord::define_commandline_flag().

Constructor & Destructor Documentation

◆ AutoRegisterLogLevelName()

AutoRegisterLogLevelName::AutoRegisterLogLevelName ( const char *  name,
uint32_t  mask,
const char *  label = nullptr 
)
inline

Automatically register a log level name with the command line option parser.

Parameters
namepoints to the null-terminated string representing the level name or alias.
maskis the mask that indicates the levels associated with the level name.
labelis an optional text label like "INFO", "DEBUG", "TRACE", etc.

Arguments are passed to LogMessageRecord::define_commandline_flag() as-is.

References LogMessageRecord::define_commandline_flag().

◆ ~AutoRegisterLogLevelName()

AutoRegisterLogLevelName::~AutoRegisterLogLevelName ( )
inline

The documentation for this class was generated from the following file:
Generated: Fri Jul 31 2020 18:19:16
Support Information