> Documentation index: https://firebase.google.com/docs/reference/emulator-suite/llms.txt

The [Firebase Local Emulator Suite](https://firebase.google.com/docs/emulator-suite.md.txt) provides a rich user
interface that includes support for viewing emulator logs. You can filter logs
in the Emulator Suite UI using the query syntax described on this page.

Note the following about this language and its syntax:

- Supported operations:

  - Exact comparisons (`key=value`)
  - Fuzzy text searches (`search=value` or unkeyed text)
  - Logical `AND` combinations using multiple `key=value` expressions separated by spaces or newlines (for example, `search=github search=com`). The `and` keyword isn't supported.
- Any query without an explicit key is treated as a single `search` term,
  including any spaces.

- Quotes are only supported on values in explicit `key=value` expressions (for
  example, `search="github"`). They are optional except when the value contains
  spaces or newlines (for example, `search="hello world"`).

Here are some examples of using the log query language for the
Emulator Suite UI:

```protobuf
// Find info logs only.
level=info

// Find logs for the `sayHelloWorld` function.
metadata.emulator.name=functions
metadata.function.name=sayHelloWorld

// Find any log mentioning `"hello world"`.
hello world  // turns into `search="hello world"` internally

// Return any Hosting `POST` requests.
metadata.emulator.name=hosting
search=POST
```

> [!NOTE]
> **Note:** This log query language is available in the Emulator Suite UI *only* . The emulators output additional logs in the `*-debug.log` files in your project directory (for example, `firestore-debug.log`).

## Keywords

### `level`

The log level.

One of `warn`, `info`, `error`.

### `search`

The text to match in a fuzzy search.

For example, `search=abc` returns logs with the text `"abc"`.

Use the `search` keyword to combine multiple fuzzy searches (for example,
`search=github search=com`) or to combine fuzzy searches with other keyword
searches (for example, `metadata.emulator.name=hosting search=POST`).

### `metadata`

Metadata about the log entry, such as the emulator or function name.

#### `metadata.emulator.name`

The emulator that generated the log.

One of `firestore`, `functions`, `database`, `pubsub`, `hosting`, `storage`.

#### `metadata.function.name`

The function name as defined in your app code.

### `user`

Any JSON data logged from your app code can be queried under `user`.

For example:

```javascript
console.log(JSON.stringify({hello: "world"}))
```

The log output can be queried with `user.hello="world"` (or `user.hello=world`).