C++ Server-Side SDK
LaunchDarkly SDK
Classes | Public Types | Public Member Functions | List of all members
launchdarkly::config::shared::builders::LoggingBuilder Class Reference

#include <logging_builder.hpp>

Classes

class  BasicLogging
 
class  CustomLogging
 
class  NoLogging
 

Public Types

using LoggingType = std::variant< BasicLogging, CustomLogging, NoLogging >
 

Public Member Functions

 LoggingBuilder ()=default
 
 LoggingBuilder (CustomLogging custom)
 
 LoggingBuilder (BasicLogging basic)
 
 LoggingBuilder (NoLogging no)
 
LoggingBuilderLogging (LoggingType logging)
 
built::Logging Build () const
 

Detailed Description

Used to configure logging for the SDK.

Constructor & Destructor Documentation

◆ LoggingBuilder() [1/4]

launchdarkly::config::shared::builders::LoggingBuilder::LoggingBuilder ( )
default

Construct a logging builder.

◆ LoggingBuilder() [2/4]

launchdarkly::config::shared::builders::LoggingBuilder::LoggingBuilder ( LoggingBuilder::CustomLogging  custom)

Construct a logging builder from a custom logging builder.

Parameters
customThe custom logging builder to construct a builder from.

◆ LoggingBuilder() [3/4]

launchdarkly::config::shared::builders::LoggingBuilder::LoggingBuilder ( LoggingBuilder::BasicLogging  basic)

Construct a logging builder from a basic logging builder.

Parameters
basicThe basic logging builder to construct a builder from.

◆ LoggingBuilder() [4/4]

launchdarkly::config::shared::builders::LoggingBuilder::LoggingBuilder ( LoggingBuilder::NoLogging  no)

Construct a logging builder from a no logging builder.

Parameters
noThe no logging builder to construct a builder from.

Member Function Documentation

◆ Build()

built::Logging launchdarkly::config::shared::builders::LoggingBuilder::Build ( ) const

Build a logger configuration. Intended for use by the SDK implementation.

Returns
A built logging configuration.

◆ Logging()

LoggingBuilder & launchdarkly::config::shared::builders::LoggingBuilder::Logging ( LoggingType  logging)

Set the type of logging to use.

Disable logging:

builder.Logging(LoggingBuilder::NoLogging())

Custom logging level:

builder.Logging(LoggingBuilder::BasicLogging().Level(LogLevel::kDebug))
Parameters
logging
Returns

The documentation for this class was generated from the following files: