
## basic_trace_output

### Synopsis

Defined in <boost/openmethod/policies/basic_trace_output.hpp>.

```c++
namespace boost::openmethod::policies {

template<class Policy, typename Stream = /*unspecified*/>
struct basic_trace_output : trace {
    static bool trace_enabled;
    static Stream trace_stream;
};

}
```

### Description

`basic_error_output` is an implementation of `trace` that writes error
messages to a `LightweightOutputStream`.

### Members

#### trace_enabled

```c++
static bool trace_enabled;
```

Set to `true` if environment variable `BOOST_OPENMETHOD_TRACE` is set to `1`.

#### trace_stream

```c++
static Stream trace_stream;
```

Initialized by the default constructor of `Stream`. It is the responsibility of
the program to prepare it for output if needed, e.g., for a `std::ofstream`, to
open it.
