---
title: "How to Write - Usage"
url: https://docs.sentry.io/contributing/approach/sdk-docs/write-usage/
---

# How to Write - Usage

The Usage section of the content covers how to manually capture events and message. A new framework can adopt the common content, which is stored in `/docs/platforms/<SDK>/common/usage` - feel free to peruse the files in that directory to help answer questions.

Don't change the common content. That change will ripple across all guides that rely on the common content. Instead, open an issue on GitHub with questions/suggestions.

Most of these pages are pretty self-evident, so only basic information is provided. But please ask questions, if any arise, by opening an issue on GitHub.

### [Index file](https://docs.sentry.io/contributing/approach/sdk-docs/write-usage.md#index-file)

This file is `index.mdx`. It explains how to manually capture events.

Add the code sample to these directories:

* `/src/platform-includes/capture-error/`
* `/src/platform-includes/capture-message/`

### [Set the Level](https://docs.sentry.io/contributing/approach/sdk-docs/write-usage.md#set-the-level)

This file is `set-level.mdx`. It explains how to set the level of the event. Add the code sample to this directory:

* `/src/platform-includes/set-level/`
