# fuchsia_logging::LogBuffer

## Summary

| ### Public functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/fuchsia-logging/log-buffer#classfuchsia__logging_1_1_log_buffer_1a0e06c7004258a93b72e3f49a2b783c81(FuchsiaLogSeverity severity, std::optional< std::string_view > file_name, unsigned int line, std::optional< std::string_view > message, uint32_t dropped_count, zx_koid_t pid, zx_koid_t tid)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/fuchsia-logging/log-buffer#classfuchsia__logging_1_1_log_buffer_1a2df520391fb542e338457e4f3f486c0f(https://fuchsia.dev/reference/cpp/class/fuchsia-logging/key-value#classfuchsia__logging_1_1_key_value< const char *, int8_t > value)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/fuchsia-logging/log-buffer#classfuchsia__logging_1_1_log_buffer_1a9ee80d74084e1ac522aeebb66f61db1f(https://fuchsia.dev/reference/cpp/class/fuchsia-logging/key-value#classfuchsia__logging_1_1_key_value< const char *, int16_t > value)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/fuchsia-logging/log-buffer#classfuchsia__logging_1_1_log_buffer_1af6824f39d6f66a9be011707300e4a2ac(https://fuchsia.dev/reference/cpp/class/fuchsia-logging/key-value#classfuchsia__logging_1_1_key_value< const char *, int32_t > value)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/fuchsia-logging/log-buffer#classfuchsia__logging_1_1_log_buffer_1ab4b105ac76a8d4ed05dcf3bdfb581e4a(https://fuchsia.dev/reference/cpp/class/fuchsia-logging/key-value#classfuchsia__logging_1_1_key_value< const char *, int64_t > value)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/fuchsia-logging/log-buffer#classfuchsia__logging_1_1_log_buffer_1a5687ca6485f2fcc1494c751548f0767f(https://fuchsia.dev/reference/cpp/class/fuchsia-logging/key-value#classfuchsia__logging_1_1_key_value< const char *, uint8_t > value)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/fuchsia-logging/log-buffer#classfuchsia__logging_1_1_log_buffer_1a97218158a318305ef803aba8967d4053(https://fuchsia.dev/reference/cpp/class/fuchsia-logging/key-value#classfuchsia__logging_1_1_key_value< const char *, uint16_t > value)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/fuchsia-logging/log-buffer#classfuchsia__logging_1_1_log_buffer_1aa881c9cbca334a2e3c17f10ff4dbf69c(https://fuchsia.dev/reference/cpp/class/fuchsia-logging/key-value#classfuchsia__logging_1_1_key_value< const char *, uint32_t > value)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/fuchsia-logging/log-buffer#classfuchsia__logging_1_1_log_buffer_1af14f0180c5631535c0e15cc28e7ad265(https://fuchsia.dev/reference/cpp/class/fuchsia-logging/key-value#classfuchsia__logging_1_1_key_value< const char *, uint64_t > value)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/fuchsia-logging/log-buffer#classfuchsia__logging_1_1_log_buffer_1ae6f2220aaeba66d75b03a3afba4b4a0b(https://fuchsia.dev/reference/cpp/class/fuchsia-logging/key-value#classfuchsia__logging_1_1_key_value< const char *, const char * > value)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/fuchsia-logging/log-buffer#classfuchsia__logging_1_1_log_buffer_1a140ca46d502b6d1cc4dd3294cb65eebe(https://fuchsia.dev/reference/cpp/class/fuchsia-logging/key-value#classfuchsia__logging_1_1_key_value< const char *, char * > value)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/fuchsia-logging/log-buffer#classfuchsia__logging_1_1_log_buffer_1aba7d5baaba683cd94543fdbeac2792c8(https://fuchsia.dev/reference/cpp/class/fuchsia-logging/key-value#classfuchsia__logging_1_1_key_value< const char *, std::string > value)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/fuchsia-logging/log-buffer#classfuchsia__logging_1_1_log_buffer_1ac45ca368e893145886fe6f1220c55983(https://fuchsia.dev/reference/cpp/class/fuchsia-logging/key-value#classfuchsia__logging_1_1_key_value< const char *, std::string_view > value)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/fuchsia-logging/log-buffer#classfuchsia__logging_1_1_log_buffer_1ab36263aa2dfd573f389490fbbd4cd001(https://fuchsia.dev/reference/cpp/class/fuchsia-logging/key-value#classfuchsia__logging_1_1_key_value< const char *, double > value)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/fuchsia-logging/log-buffer#classfuchsia__logging_1_1_log_buffer_1a25f31a3e941a865a24d2d1dbec8ddb5e(https://fuchsia.dev/reference/cpp/class/fuchsia-logging/key-value#classfuchsia__logging_1_1_key_value< const char *, float > value)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/fuchsia-logging/log-buffer#classfuchsia__logging_1_1_log_buffer_1a8105d8464abb99f7bcbf51c15e787e7b(https://fuchsia.dev/reference/cpp/class/fuchsia-logging/key-value#classfuchsia__logging_1_1_key_value< const char *, bool > value)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/fuchsia-logging/log-buffer#classfuchsia__logging_1_1_log_buffer_1a351592a09919e5528cc61158ef6d3dd4()` | `https://fuchsia.dev/reference/cpp/other/singletoncpp20/span#singletoncpp20_1_1span< const uint8_t >` |
| `https://fuchsia.dev/reference/cpp/class/fuchsia-logging/log-buffer#classfuchsia__logging_1_1_log_buffer_1a60ba72988936c6699bafcbe781cfd216(std::string_view key, const char *value)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/fuchsia-logging/log-buffer#classfuchsia__logging_1_1_log_buffer_1ad8a6f1f838961062d9fd2bb8c4796f23(std::string_view key, std::string_view value)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/fuchsia-logging/log-buffer#classfuchsia__logging_1_1_log_buffer_1af117cdeec30d1372aa84af65af6f53cd(std::string_view key, int64_t value)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/fuchsia-logging/log-buffer#classfuchsia__logging_1_1_log_buffer_1aa2d3d5dfad37c4a794f326f03498cb13(std::string_view key, uint64_t value)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/fuchsia-logging/log-buffer#classfuchsia__logging_1_1_log_buffer_1aeb5e3e03dededc6d4e64503392de433b(std::string_view key, double value)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/fuchsia-logging/log-buffer#classfuchsia__logging_1_1_log_buffer_1a7b45ec170630c023328815abf820509e(std::string_view key, bool value)` | `void` |

## Public functions

### BeginRecord

```c++
void BeginRecord(
  FuchsiaLogSeverity severity,
  std::optional< std::string_view > file_name,
  unsigned int line,
  std::optional< std::string_view > message,
  uint32_t dropped_count,
  zx_koid_t pid,
  zx_koid_t tid
)
```

### Encode

```c++
void Encode(
  KeyValue< const char *, int8_t > value
)
```

### Encode

```c++
void Encode(
  KeyValue< const char *, int16_t > value
)
```

### Encode

```c++
void Encode(
  KeyValue< const char *, int32_t > value
)
```

### Encode

```c++
void Encode(
  KeyValue< const char *, int64_t > value
)
```

### Encode

```c++
void Encode(
  KeyValue< const char *, uint8_t > value
)
```

### Encode

```c++
void Encode(
  KeyValue< const char *, uint16_t > value
)
```

### Encode

```c++
void Encode(
  KeyValue< const char *, uint32_t > value
)
```

### Encode

```c++
void Encode(
  KeyValue< const char *, uint64_t > value
)
```

### Encode

```c++
void Encode(
  KeyValue< const char *, const char * > value
)
```

### Encode

```c++
void Encode(
  KeyValue< const char *, char * > value
)
```

### Encode

```c++
void Encode(
  KeyValue< const char *, std::string > value
)
```

### Encode

```c++
void Encode(
  KeyValue< const char *, std::string_view > value
)
```

### Encode

```c++
void Encode(
  KeyValue< const char *, double > value
)
```

### Encode

```c++
void Encode(
  KeyValue< const char *, float > value
)
```

### Encode

```c++
void Encode(
  KeyValue< const char *, bool > value
)
```

### EndRecord

```c++
cpp20::span< const uint8_t > EndRecord()
```

### WriteKeyValue

```c++
void WriteKeyValue(
  std::string_view key,
  const char *value
)
```

### WriteKeyValue

```c++
void WriteKeyValue(
  std::string_view key,
  std::string_view value
)
```

### WriteKeyValue

```c++
void WriteKeyValue(
  std::string_view key,
  int64_t value
)
```

### WriteKeyValue

```c++
void WriteKeyValue(
  std::string_view key,
  uint64_t value
)
```

### WriteKeyValue

```c++
void WriteKeyValue(
  std::string_view key,
  double value
)
```

### WriteKeyValue

```c++
void WriteKeyValue(
  std::string_view key,
  bool value
)
```