From c75d3182c4c654fce9fc9b07d47b32b9cadc7862 Mon Sep 17 00:00:00 2001 From: Berger Eugene Date: Thu, 5 Jan 2023 22:41:04 +0200 Subject: [PATCH] Log location documentation update --- README.md | 15 ++++++++++++++- process-compose.yaml | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 56c8ff8..b653792 100755 --- a/README.md +++ b/README.md @@ -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. #### ✅ Health Checks diff --git a/process-compose.yaml b/process-compose.yaml index 44008b1..28e338c 100644 --- a/process-compose.yaml +++ b/process-compose.yaml @@ -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'