fuchsia_logging::LogSettings

#include <log_settings.h>

Settings which control the behavior of logging.

Summary

Public attributes

log_file
std::string
The name of a file to which the log should be written.
min_log_level = fuchsia_logging::kDefaultLogLevel
FuchsiaLogSeverity
The minimum logging level.
tags
std::vector< std::string >

Public attributes

log_file

std::string fuchsia_logging::LogSettings::log_file

The name of a file to which the log should be written.

When non-empty, the previous log output is closed and logging is redirected to the specified file. It is not possible to revert to the previous log output through this interface.

min_log_level

FuchsiaLogSeverity fuchsia_logging::LogSettings::min_log_level = fuchsia_logging::kDefaultLogLevel

The minimum logging level.

Anything at or above this level will be logged (if applicable). Anything below this level will be silently ignored.

The log level defaults to LOG_INFO.

Log messages for FX_VLOGS(x) (from macros.h) log verbosities in the range between INFO and DEBUG

tags

std::vector< std::string > fuchsia_logging::LogSettings::tags