mirror of
https://github.com/asciinema/asciinema.git
synced 2026-04-25 16:05:52 +03:00
[PR #612] [MERGED] Logging for the stream command #1154
Labels
No labels
bug
compatibility
feature request
fit for beginners
help wanted
hosting
idea
improvement
packaging
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asciinema#1154
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/asciinema/asciinema/pull/612
Author: @ku1ik
Created: 2/8/2024
Status: ✅ Merged
Merged: 2/8/2024
Merged by: @ku1ik
Base:
develop← Head:stream-logs📝 Commits (9)
a42f7beAdd option to save streamer logs to a file4fa684bImprove option description0478bf0Write user notifications to streamer's log file3d3b2aaDisable ANSI colors in streamer log file582a6aaUse INFO as default streamer log level2a01e9dLog stream connects and disconnects8052670Log viewer count upon each new stream client connectionbd1fb51Drain websocket client's read side666bc4dConfig file option for specifying stream log file📊 Changes
7 files changed (+229 additions, -7 deletions)
View changed files
📝
Cargo.lock(+148 -0)📝
Cargo.toml(+3 -1)📝
src/cmd/stream.rs(+40 -2)📝
src/config.rs(+5 -0)📝
src/streamer/mod.rs(+6 -1)📝
src/streamer/server.rs(+23 -3)📝
src/streamer/session.rs(+4 -0)📄 Description
This adds logging for the streamer (
asciinema streamcommand).Disabled by default.
Can be enabled by specifying a log file via
--log-fileoption tostreamcommand:Alternatively, it can be set permanently in the config file (
~/.config/asciinema/config.toml):🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.