Boost C++ Libraries

PrevUpHomeNext

Function template named_scope

boost::log::formatters::named_scope

Synopsis

// In header: <boost/log/formatters/named_scope.hpp>


template<typename CharT, typename... ArgsT> 
  fmt_named_scope< CharT, no_throw_policy > 
  named_scope(std::basic_string< CharT > const & name, ArgsT...const & args, 
              std::nothrow_t const &);

Description

Formatter generator. Construct the named scope formatter with the specified formatting parameters. The formatter will not throw if the attribute value is not found in the record being formatted. Instead, no output will be produced for this attribute value.

Parameters:
args

An optional set of named parameters. Supported parameters:

  • delimiter - a string that is used to delimit the formatted scope names. Default: "->" or "<-", depending on the iteration direction.

  • iteration - iteration direction. Default: forward.

  • depth - iteration depth. Default: unlimited.

name

Attribute name


PrevUpHomeNext