# LogStream

<a id="logstream"></a>

# LogStream

```cpp
#include <icy/logger.h>

struct LogStream
```

[Defined in src/base/include/icy/logger.h:343](https://github.com/auscaster/icey/blob/main/src/base/include/icy/logger.h#L343)

No-op log record used when logging is compiled out.

## Public Methods

| Return | Name | Description |
|--------|------|-------------|
|  | [`LogStream`](#logstream-1) `inline` |  |
|  | [`LogStream`](#logstream-2) `inline` |  |
|  | [`~LogStream`](#logstream-3)  | Defaulted destructor. |
| `void` | [`write`](#write-9) `inline` |  |
| [`LogStream`](#logstream) & | [`operator<<`](#operator-61) `inline` |  |
| [`LogStream`](#logstream) & | [`operator<<`](#operator-62) `inline` |  |

---

<a id="logstream-1"></a>

### LogStream

`inline`

```cpp
inline LogStream(Level level, std::string realm, int line, const char * channel = nullptr)
```

[Defined in src/base/include/icy/logger.h:345](https://github.com/auscaster/icey/blob/main/src/base/include/icy/logger.h#L345)

---

<a id="logstream-2"></a>

### LogStream

`inline`

```cpp
inline LogStream(const LogStream & that)
```

[Defined in src/base/include/icy/logger.h:346](https://github.com/auscaster/icey/blob/main/src/base/include/icy/logger.h#L346)

---

<a id="logstream-3"></a>

### ~LogStream

```cpp
~LogStream() = default
```

[Defined in src/base/include/icy/logger.h:347](https://github.com/auscaster/icey/blob/main/src/base/include/icy/logger.h#L347)

Defaulted destructor.

---

<a id="write-9"></a>

### write

`inline`

```cpp
template<typename... Args> inline void write(Args... args)
```

[Defined in src/base/include/icy/logger.h:350](https://github.com/auscaster/icey/blob/main/src/base/include/icy/logger.h#L350)

---

<a id="operator-61"></a>

### operator<<

`inline`

```cpp
template<typename T> inline LogStream & operator<<(const T &)
```

[Defined in src/base/include/icy/logger.h:355](https://github.com/auscaster/icey/blob/main/src/base/include/icy/logger.h#L355)

---

<a id="operator-62"></a>

### operator<<

`inline`

```cpp
inline LogStream & operator<<(std::ostream &(*)(std::ostream &) f)
```

[Defined in src/base/include/icy/logger.h:360](https://github.com/auscaster/icey/blob/main/src/base/include/icy/logger.h#L360)
