# fuchsia_logging::LogSettings

`#include <log_settings.h>`

Settings which control the behavior of logging.

## Summary

| ### Public attributes ||
|---|---|
| `https://fuchsia.dev/reference/cpp/struct/fuchsia-logging/log-settings#structfuchsia__logging_1_1_log_settings_1ae00c19aba8fe288bcd881d4da2fef354` | `std::string` The name of a file to which the log should be written. |
| `https://fuchsia.dev/reference/cpp/struct/fuchsia-logging/log-settings#structfuchsia__logging_1_1_log_settings_1a26d77f5998e20e12dba06a18b3389433 = fuchsia_logging::kDefaultLogLevel` | `fuchsia_logging::RawLogSeverity` The minimum logging level. |
| `https://fuchsia.dev/reference/cpp/struct/fuchsia-logging/log-settings#structfuchsia__logging_1_1_log_settings_1a7a522d16be0a3bdc541fbafc855a92f6` | `std::vector< std::string >` |

## Public attributes

### log_file

```c++
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

```c++
fuchsia_logging::RawLogSeverity 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

```c++
std::vector< std::string > fuchsia_logging::LogSettings::tags
```