> For the complete documentation index, see [llms.txt](https://documentation.2pintsoftware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.2pintsoftware.com/mom/monitoring-and-reporting/log-files.md).

# Log files

MOM writes to the Windows event log. A log file can be turned on for troubleshooting.

## Where the logs are

| Log              | Where                                                                 |
| ---------------- | --------------------------------------------------------------------- |
| Event log        | Applications and Services Logs, `TwoPintSoftware-StifleR.Mom-Service` |
| Startup failures | The **Application** log, event 119, text starting with `StifleR.Mom`  |
| Debug log file   | Off by default, see below                                             |

## What to look for

| Event | Message                                                                     | Meaning                                                  |
| ----- | --------------------------------------------------------------------------- | -------------------------------------------------------- |
| 10304 | `Proxy server is listening on ...`                                          | MOM has started. Shows address, port and TLS mode        |
| 10017 | `Using Auto-generated certificate ...` or `Using specified certificate ...` | The certificate in use                                   |
| 10061 | `CI generated at ...`                                                       | A file is complete and can be shared                     |
| 10064 | `CI for ... taken from origin ...`                                          | The origin supports BranchCache                          |
| 11090 | `Ignoring Url ... because ...`                                              | MOM does not handle this content. The message says why   |
| 10045 | `Sending transient error to bits job ...`                                   | A BITS client waited too long for a download in progress |
| 10062 | `CI generation failed ...`                                                  | The CI could not be created                              |
| 10302 | `Unable to read proxy request ...`                                          | A client did not complete TLS with MOM                   |
| 10300 | `... error occurred (host ...)`                                             | An error on a client connection                          |

See [Troubleshooting](https://documentation.2pintsoftware.com/mom/troubleshooting/overview.md) for what to do.

## Debug log file

Turn on **Enable debug log** in the Configuration Editor, under **Show advanced**, and restart the service.

| Fact      | Value                                                                                 |
| --------- | ------------------------------------------------------------------------------------- |
| Folder    | `C:\Windows\Temp\StifleR.Mom\` by default. Set with **Folder to save MOM debug logs** |
| File name | `mom_<date and time>.log`, one per service start                                      |
| File size | A new file is started at 10 MB                                                        |

The file has a line for every request and every response, with the client IP address, the URL, the range and the time taken.

Turn it off again afterwards. It grows fast on a busy server.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.2pintsoftware.com/mom/monitoring-and-reporting/log-files.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
