Skip to content
/ chatty Public

A chatty container used to debug logging pipelines

License

Notifications You must be signed in to change notification settings

Heldroe/chatty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chatty: a container that writes to stdout

Usage

$ docker run -t heldroe/chatty

Options

$ docker run heldroe/chatty --help
    usage: chatty.py [-h] [--json] [-f FREQUENCY]

    optional arguments:
      -h, --help            show this help message and exit
      --json                log in JSON format
      -f FREQUENCY, --frequency FREQUENCY
                            log line frequency (log lines per second)

Example

$ docker run -t heldroe/chatty --json --frequency=2
{"Hello": "World!"}
{"Hello": "World!"}
{"Hello": "World!"}
{"Hello": "World!"}
...

Running without Docker

Without Docker you'll need Python to run chatty:

$ git clone git@github.com:Heldroe/chatty.git
$ cd chatty
$ ./chatty.py

Possible improvements

  • Write to stderr
  • Make sure the frequency is within reasonable bounds (i.e. > 0)
  • Customizable output (not just "Hello, World!")

About

A chatty container used to debug logging pipelines

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published