Skip to content

Commit

Permalink
Log location documentation update
Browse files Browse the repository at this point in the history
  • Loading branch information
F1bonacc1 committed Jan 5, 2023
1 parent cf66870 commit c75d318
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,20 @@ processes:
command: "chmod 666 /path/to/file"
```

This setting controls the `process-compose` log level. The processes log level should be defined inside the process. It is recommended to support its definition with an environment variable that can be defined in `process-compose.yaml`
This setting controls the `process-compose` log level. The processes log level should be defined inside the process. It is recommended to support this definition with an environment variable in `process-compose.yaml`

Default log location: `/tmp/process-compose-$USER.log`

**Tip:** It is recommended to add the following process configuration to your `process-compose.yaml`:

```yaml
processes:
pc_log:
command: "tail -f -n100 process-compose-${USER}.log"
working_dir: "/tmp"
```

This will allow you to spot any issues with the processes execution, without leaving the `process-compose` TUI.

#### ✅ <u>Health Checks</u>

Expand Down
2 changes: 1 addition & 1 deletion process-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ processes:
disabled: true

pc_log:
command: "tail -f -n100 process-compose-eugene.log"
command: "tail -f -n100 process-compose-${USER}.log"
working_dir: "/tmp"
environment:
- 'REDACTED=1'
Expand Down

0 comments on commit c75d318

Please sign in to comment.