Skip to content

Commit

Permalink
log location
Browse files Browse the repository at this point in the history
  • Loading branch information
jalas167 committed Sep 3, 2024
1 parent ef1911f commit cfe3ba9
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/navigation/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,10 @@ export const navigation = [
title: 'Yagna uninstallation',
href: '/docs/creators/tools/yagna/requestor-uninstallation',
},
{
title: 'Yagna logs',
href: '/docs/creators/tools/yagna/yagna-logs',
},
{
title: 'Managing Golem Wallet',
href: '/docs/creators/tools/yagna/managing-golem-wallet',
Expand Down Expand Up @@ -654,7 +658,10 @@ export const navigation = [
href: '/docs/providers/provider-uninstallation',
},
{ title: 'Provider FAQ', href: '/docs/providers/provider-faq' },
{ title: 'Understanding provider logs', href: '/docs/providers/understanding-logs' },
{
title: 'Understanding provider logs',
href: '/docs/providers/understanding-logs',
},
],
},
{
Expand Down
64 changes: 64 additions & 0 deletions src/pages/docs/creators/tools/yagna/yagna-logs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
---
title: How to get the Golem Requestor Logs
description: Information on the location and configuration of the Yagna requestor Logs.
type: Guide
---

# Where are Yagna logs stored?

Yagna logs are saved in the following location:

{% tabs %}
{% tab label="Linux" %}

The Yagna daemon saves its configuration and data files in a directory specified by the `YAGNA_DATADIR` environment variable. If you haven't set this variable, Yagna uses a default directory: `~/.local/share/yagna`.

To find out if your data is stored in a custom location, type this command in the terminal:

```bash
echo $YAGNA_DATADIR
```

{% /tab %}
{% tab label="Windows" %}
Yagna daemon logs, configuration, and persistent files are stored in the location defined by the `YAGNA_DATADIR` environment variable. If it is not set, then the default location for Yagna data is: `%HOMEPATH%\AppData\Roaming\GolemFactory\yagna`.

To verify whether you're using a custom location for Yagna data, execute this command:

```sh
set YAGNA_DATADIR
```

{% /tab %}
{% /tabs %}

Current logs are saved in the `yagna_rCURRENT/log` file.
Every day and on each restart a new log file is created and the older version is saved under name: `yagna_rYYYY-MM-DD_hh-mm-ss[restart-nnn]` where the `YYYY-MM-DD_hh-mm-ss` indicates the date and time of the log start and optional suffix `restart-nnn` indicates that the log was created during Yagna restart.

### Logging level

By default, Yagna logs on the INFO level so that the logs will contain ERRORs, WARNings, and INFOrmation.
If you need more detailed logs set the `RUST_LOG` variable value to `debug`.

{% tabs %}
{% tab label="Linux" %}

```bash
export RUST_LOG=debug
```

{% /tab %}
{% tab label="Windows" %}

```
set RUST_LOG=debug
```

{% /tab %}
{% /tabs %}

{% docnavigation title="See also" %}

- Logs format is described in this [article](/docs/providers/understanding-logs).

{% /docnavigation %}

0 comments on commit cfe3ba9

Please sign in to comment.