# get-log()

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

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

## Example

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

## See also

* [Logging](https://sevenval.gitbook.io/flat/administration/logging) (Administration)
* [Custom Logging](https://sevenval.gitbook.io/flat/cookbook/custom-logging) (Cookbook)
* [`log` action](https://sevenval.gitbook.io/flat/reference/actions/log) (Reference)
