> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dwe.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Viewing Logs

> This guide is to help you navigate and understand the Logs page in dweOS

<Note>
  The logs page should only be used if an issue is detected with dweOS and
  support is required. Please be prepared with a log if contacting support
  regarding dweOS
</Note>

## Accessing the page

The logs page is located at **Communications/Logs** in the navigation bar.

## The anatomy of a log

<Tip>Logs are cleared upon system reboot and are not stored.</Tip>

### Logs contain 6 key pieces of information:

1. The timestamp of the log
2. The log level
3. The name of the log's origin
4. The file origin
5. The function origin
6. The message

The following is an example of a log entry:

```
2024-10-25 20:10:34,131 - INFO - root - utils.py:41 - create_pwm_controllers - Device is Raspberry Pi 5
```

1. `2024-10-25 20:10:34,131` - specifies the timestamp of the log entry
   <Note>
     The timestamp will not reflect the real-world time, unless synchronized to
     an internet clock.
   </Note>
2. `INFO` - specifies the log level as INFO
3. `root` - specifies the origin as the root of the program
4. `utils.py:41` - indicates the log originates from the utils.py file at line 41
5. `create_pwm_controllers` - indicates the function it originated from is for creating the PWM controllers
6. `Device is Raspberry Pi 5` - the message shows that the type of device is what is being logged here

## Exporting a log

There are two ways to export a log:

1. Export to a file

2. Copy the text directly

<img src="https://mintcdn.com/deepwaterexplorationinc/NrWVR9Qe6FWmBE6d/dwe-os/pages/images/logs_page.png?fit=max&auto=format&n=NrWVR9Qe6FWmBE6d&q=85&s=cc88a83666ec5a68764a549f262cd37b" width="3299" height="1424" data-path="dwe-os/pages/images/logs_page.png" />

## Exporting to a file

Select the export button on the bottom left.

<img src="https://mintcdn.com/deepwaterexplorationinc/NrWVR9Qe6FWmBE6d/dwe-os/pages/images/logs_export.png?fit=max&auto=format&n=NrWVR9Qe6FWmBE6d&q=85&s=37e82baf42ddf0f1bdfc00208dc57806" width="155" height="81" data-path="dwe-os/pages/images/logs_export.png" />

## Copying the text

Select the copy button on the bottom left. This will copy the text to the clipboard.

<img src="https://mintcdn.com/deepwaterexplorationinc/NrWVR9Qe6FWmBE6d/dwe-os/pages/images/logs_copy.png?fit=max&auto=format&n=NrWVR9Qe6FWmBE6d&q=85&s=e160f0dfb297a9cab46d3630003f55ab" width="201" height="81" data-path="dwe-os/pages/images/logs_copy.png" />
