tt CLI (2.10): show logs with `tt tcm logs`
Nobody has claimed this yet.
- Dominant language
- CSS
- Stars
- 15
- Forks
- 49
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 3
Description
Product: tt CLI
Since: tt 2.10.0
Dev ticket: https://github.com/tarantool/tt/commit/7fd3e0548fa4d0e6c320422602c9f78dce0b43f2
Root document: https://www.tarantool.io/en/doc/latest/tooling/tt_cli/tcm/
SME: @ oleg-jukovec @ dmyger
Details
This commit introduces the ability to view TCM logs using
the tt tcm log command.
This command works in couple with the tt tcm start command,
and show the logs of the TCM process that was running by it.
Command expect exists tcm.log file in the current directory.
Usage example:
tt tcm log --lines 100 --follow
This command will show the last 100 lines of the TCM log
file and continue to follow the log output.
This feature is useful for monitoring the TCM process.
Without the --follow flag, it will show the last 100 lines
of the log file and exit.
The command also supports following flags:
--no-colorto disable colored output--no-formatto disable structured output
Possible output:
{
time: **2025-05-29T17:19:47.905335965+03:00**
level: INFO
msg: _tcm stopped_
source: {
file: "tcm/internal/app/tcm/server/server.go",
function: "tcm/internal/server.(*TcmAPI).Close",
line: 175
}
}
{
time: **2025-05-29T17:19:47.90451709+03:00**
level: WARN
msg: _retrying of unary invoker failed_
attempt: 0,
error: "rpc error: code = Canceled desc = latest balancer error:
last connection error: connection error: desc = \"transport:
Error while dialing: dial tcp 127.0.0.1:2379: connect:
connection refused\"",
source: {
file: "go.etcd.io/etcd/client/v3@v3.5.15/retry_interceptor.go",
function: "v3.(*Client).unaryClientInterceptor.func1",
line: 63
},
target: "etcd-endpoints://0xc0003d2000/127.0.0.1:2379"
}
{
time: **2025-05-29T17:19:47.90548212+03:00**
level: ERROR
msg: _fail to get entity from etcd_
err: "context canceled",
path: "/cluster/",
source: {
file: "tcm/internal/app/tcm/server.go",
function: "tcm/internal/app/tcm/server.(*TcmAPI).validationKV",
line: 17
}
}
Closes #TNTP-1103
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked TCM root document and inspect how existing tt tcm commands are documented. Add the command's usage, --lines and --follow behavior, and the --no-color and --no-format flags, resolving whether the command is named log or logs. Done means the TCM log viewing workflow and example are documented accurately.
Written by the indexing model from the issue text.
Assessment
- Domain
- cli, documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100