https://github.com/octplane/small-logger
A small logger in rust. Companion of small-deployer
https://github.com/octplane/small-logger
command-line logging rust
Last synced: 3 months ago
JSON representation
A small logger in rust. Companion of small-deployer
- Host: GitHub
- URL: https://github.com/octplane/small-logger
- Owner: octplane
- License: mit
- Created: 2015-03-24T14:16:49.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-04-26T12:38:33.000Z (about 10 years ago)
- Last Synced: 2025-09-24T01:46:01.173Z (9 months ago)
- Topics: command-line, logging, rust
- Language: CSS
- Homepage:
- Size: 1.13 MB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Small logger
This application allow you to read another app logs (`stdout` and `stderr`) and write them to a log file.
- reads stdout and stdin of your process
- adds a timestamps
- writes the result in a file that is composed of single JSON lines for later parsing
# installing
```
cargo install small-logger
```
# How to use?
```
Usage: small-logger [-d log_folder] [-n process_name] [COMMAND WITH PARAMETERS]
Options:
-d, --directory DIRECTORY
root log folder. Default is ./logs
-n, --name PROCESS pretty name for the process. Should be time invariant
and filesystem friendly. Default is process
-c, --change_directory WORKING_DIRECTORY
PWD for the process. Default is .
-h, --help print this help menu.
```
# TODO
- add MARK syslog like to indicate process is still alive when idle for a long time.