---
title: "Logging options [Connection Quality]"
canonical: "https://help.peakhourapp.com/space/P4D/655581/Logging%20options%20%5BConnection%20Quality%5D"
format: markdown
---
> Macro (pagetree)



![image](media://ec3686e2-2d0e-48de-a112-4b713d8d5990)

These options allow you to enable logging of activity to a CSV file that can be imported and analysed in another application (e.g. Numbers or Microsoft Excel)

## Log to file

| **Log activity to a file** | When this checkbox is enabled, average latency values will be written to file(s) in Log location. |
| --- | --- |
| **Log location** | The location to store the log file.<br>Note: Due to the requirement for App Sandboxing, you must click **Choose...** to choose a location for the files to be stored, otherwise PeakHour will not be granted permission to write there. |
| **Reveal in Finder** | Opens the chosen folder in Finder. |

## Frequency

These options determine how often data is written to the file and (optionally) how often the files are rotated.

| **Write to log every** | How often to write a new record (line) in the CSV log file. |
| --- | --- |
| **Rotate log file** | How often to start a new log file. |

Log filename

Log files are always stored in the **Log location** folder and have a different filename format depending on the log rotation frequency:

| **Frequency** | **Format** |
| --- | --- |
| **Hourly** | `<Target Description> YY-MM-DD HH:MM.csv`<br>Where:<br>- `YY-MM-DD` is the date in Year-Month-Day
- `HH:MM` is the time in Hour:Minutes |
| **Daily** | `<Target Description> YY-MM-DD.csv`<br>Where:<br>- `YY-MM-DD` is the date in Year-Month-Day |
| **Weekly** | `<Target Description> YY-MM-DD w.csv`<br>Where:<br>- `YY-MM-DD` is the date in Year-Month-Day
- `w` is the number of the week. |
| **Monthly** | `<Target Description> YY-MM.csv`<br>Where:<br>- `YY-MM` is the date in Year-Month |
| **Yearly** | `<Target Description> YYYY.csv`<br>Where:<br>- `YYYY` is the year |

`Target Description` is the description you've entered on the **Target** tab.

## Log format

The log file contains the following fields:

| **Date/Time** | The date and time of the entry in your localised time format. |
| --- | --- |
| **Target** | The description of the target. |
| **Average Response Time (ms)** | The average latency / response time over the period. |