> For the complete documentation index, see [llms.txt](https://sevenval.gitbook.io/flat/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sevenval.gitbook.io/flat/reference/functions/get-log.md).

# get-log()

```
OXN node-set get-log()
```

`get-log()` returns all [standard](/flat/administration/logging.md#access-log) and [custom](/flat/cookbook/custom-logging.md) log fields currently registered for access logging. It is mainly used to [test](/flat/reference/testing.md) the [`log` action](/flat/reference/actions/log.md).

## Example

```markup
<flat-test>
  <log>
  {
    "foo": "bar"
  }
  </log>
  <assert>
  [
    [ "get-log()/foo", "bar" ]
  ]
  </assert>
</flat-test>
```

## See also

* [Logging](/flat/administration/logging.md) (Administration)
* [Custom Logging](/flat/cookbook/custom-logging.md) (Cookbook)
* [`log` action](/flat/reference/actions/log.md) (Reference)
