{"id":13452415,"url":"https://github.com/chentex/random-logger","last_synced_at":"2026-01-22T06:04:04.890Z","repository":{"id":54960840,"uuid":"62595026","full_name":"chentex/random-logger","owner":"chentex","description":"Docker image for a random log generator.","archived":false,"fork":false,"pushed_at":"2024-07-21T04:23:58.000Z","size":24,"stargazers_count":121,"open_issues_count":3,"forks_count":103,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-28T18:55:19.156Z","etag":null,"topics":["docker-image","logger","random-generation"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chentex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-05T00:43:56.000Z","updated_at":"2024-07-18T06:22:56.000Z","dependencies_parsed_at":"2024-10-28T18:50:02.788Z","dependency_job_id":null,"html_url":"https://github.com/chentex/random-logger","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chentex%2Frandom-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chentex%2Frandom-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chentex%2Frandom-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chentex%2Frandom-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chentex","download_url":"https://codeload.github.com/chentex/random-logger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245159371,"owners_count":20570372,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker-image","logger","random-generation"],"created_at":"2024-07-31T07:01:23.562Z","updated_at":"2026-01-22T06:03:59.871Z","avatar_url":"https://github.com/chentex.png","language":"Shell","funding_links":[],"categories":["others","Shell"],"sub_categories":[],"readme":"# random-logger\n\nDocker image for a random log generator, based on Alpine Linux.\n\n![release](https://github.com/chentex/random-logger/workflows/release/badge.svg)\n![Docker Image Version (latest by date)](https://img.shields.io/docker/v/chentex/random-logger)\n\n## What is this?\n\nThis image will execute a container which will generate four random log messages:\n\n* `2018-03-02T22:33:27-06:00 ERROR something happened in this execution.`\n* `2018-03-02T22:33:27-06:00 INFO takes the value and converts it to string.`\n* `2018-03-02T22:33:27-06:00 WARN variable not in use.`\n* `2018-03-02T22:33:27-06:00 DEBUG first loop completed.`\n\n## Why this Image?\n\nI've had the necessity to create a random logger to test log configurations with containers, this helped me out to do it easily.\n\n## What is inside of this repo?\n\nIn this git repository you will find the docker image definitions for the random Logger for Alpine Linux\n\n* `Dockerfile` -\u003e Contains image definition.\n* `entrypoint.sh` -\u003e Shell code to generate log messages.\n\n## How do I use this image?\n\nTo use this image you must do as follows:\n\n```bash\n# you can use tags latest\ndocker pull chentex/random-logger:latest\n\n# use different intervals to print logs every random(100, 400) milliseconds\ndocker run chentex/random-logger:latest 100 400\n\n# use the third parameter so limit the number of loglines (after generating the lines the container will stop).\n# if not set it runs infinite\ndocker run chentex/random-logger:latest 100 400 100\n\n# to run the image just execute\ndocker run -d chentex/random-logger:latest\n```\n\nYou will have now a docker container running and generating log messages, locate it running:\n\n```bash\ndocker ps\n```\n\nYou can see the logs using this command\n\n```bash\ndocker logs \u003c- container-id -\u003e\n```\n\n## How do I build this images?\n\nFirst things first, you can find these docker images in `chentex/random-logger`\nbut you can also build a specific version on your own, you only need:\n\n* docker\n* git\n\nClone this repo\n\n`git clone https://github.com/chentex/random-logger.git`\n\nGo to the folder in your terminal and type this:\n\n```bash\n# cd into folder\ncd random-logger\n# Then build the new image\ndocker build -f Dockerfile .\n```\n\nIf you want to tag your image use the following command\n\n```bash\ndocker build -f Dockerfile -t yourbase/yourname:version .\n```\n\n---\n\nFor more on docker build reference to the [Documentation](https://docs.docker.com/engine/reference/commandline/build/)\n\nYou can get the source from the image in the [Repository](https://github.com/chentex/random-logger)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchentex%2Frandom-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchentex%2Frandom-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchentex%2Frandom-logger/lists"}