Skip to content

feat: polycli dockerlogger#623

Merged
jhkimqd merged 2 commits intomainfrom
jihwan/dockerlogger
Jun 18, 2025
Merged

feat: polycli dockerlogger#623
jhkimqd merged 2 commits intomainfrom
jihwan/dockerlogger

Conversation

@jhkimqd
Copy link
Copy Markdown
Contributor

@jhkimqd jhkimqd commented Jun 18, 2025

Description

This PR adds a new polycli feature polycli dockerlogger. This command allows easy monitoring for filtered log levels, services, and keywords inside a specified docker network. It is particularly useful for testing Kurtosis networks and more helpful when attaching additional docker containers to an existing Kurtosis enclave where kurtosis service logs is not available.

Usage

Refer to dockerlogger.md

# Docker Logger

A tool to monitor and filter Docker container logs.

## Usage

```bash
dockerlogger --network <network-name> [flags]

Flags:
  --network string     Docker network name to monitor
  --all               Show all logs
  --errors            Show error logs
  --warnings          Show warning logs
  --info              Show info logs
  --debug             Show debug logs
  --filter string     Additional keywords to filter (comma-separated)
  --levels string     Comma-separated log levels to show (error,warn,info,debug)
  --service string    Filter logs by service names (comma-separated, partial match)

Testing

polycli dockerlogger --network kt-op --service agglayer,aggkit,op-succinct --levels error,warn

Monitoring a running Kurtosis enclave logs for errors and warning messages during a scenario test.
image

After having visibility of all error/warn logs of a docker network, one can investigate that particular container's logs for further analysis.

jhkimqd added 2 commits June 18, 2025 09:21
Signed-off-by: Ji Hwan <jkim@polygon.technology>
Signed-off-by: Ji Hwan <jkim@polygon.technology>
@jhkimqd jhkimqd force-pushed the jihwan/dockerlogger branch from 8028641 to 2a1bbcf Compare June 18, 2025 00:57
@jhkimqd jhkimqd enabled auto-merge June 18, 2025 02:34
@jhkimqd jhkimqd changed the title feat: polycli docklog feat: polycli dockerlogger Jun 18, 2025
Copy link
Copy Markdown
Member

@leovct leovct left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice!!

@jhkimqd jhkimqd merged commit 1485356 into main Jun 18, 2025
13 checks passed
@jhkimqd jhkimqd deleted the jihwan/dockerlogger branch June 18, 2025 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants