https://github.com/colinzhu/stdio-logger-go
https://github.com/colinzhu/stdio-logger-go
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/colinzhu/stdio-logger-go
- Owner: colinzhu
- Created: 2025-05-08T14:25:47.000Z (29 days ago)
- Default Branch: master
- Last Pushed: 2025-05-08T14:30:54.000Z (29 days ago)
- Last Synced: 2025-05-08T15:33:07.578Z (29 days ago)
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# STDIO Logger Go
A Go implementation of a command wrapper that logs all STDIN/STDOUT/STDERR traffic while passing it through verbatim.
## Features
- Logs all input and output of wrapped commands
- Preserves exact data flow between streams
- Creates log file in same directory as executable
- Properly handles process termination and cleanup## Building
To build the project, run:
```bash
$ go build -o stdio-logger-go
```This will create a binary named `stdio-logger-go` in current directory.
## Usage
Basic usage:
```bash
$ ./stdio-logger-go [args...]
```Example:
```bash
$ ./stdio-logger-go java -h
```The program will create a log file like `stdio-20250513_235959.log` in the same directory as the executable.
## Output
The log file will contain entries with prefixes:
- `in: ` for standard input
- `out: ` for standard output
- `err: ` for standard error