Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jpwilliams/docker-logger
Output logs of all of your Docker containers. Verbose, but sometimes useful.
https://github.com/jpwilliams/docker-logger
Last synced: 22 days ago
JSON representation
Output logs of all of your Docker containers. Verbose, but sometimes useful.
- Host: GitHub
- URL: https://github.com/jpwilliams/docker-logger
- Owner: jpwilliams
- License: mit
- Created: 2019-12-13T17:03:26.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-02T08:46:32.000Z (over 1 year ago)
- Last Synced: 2024-09-22T11:19:27.097Z (about 1 month ago)
- Language: JavaScript
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @jpwilliams/docker-logger
Output logs of all of your Docker containers. Verbose, but sometimes useful.
``` sh
npm install --save @jpwilliams/docker-logger
`````` sh
$ docker-logger[great_nightingale : chentex/random-logger] 2019-12-13T16:40:21+0000 DEBUG first loop completed.
[heuristic_gates : chentex/random-logger] 2019-12-13T16:40:21+0000 ERROR something happened in this execution.
[hopeful_matsumoto : chentex/random-logger] 2019-12-13T16:40:21+0000 ERROR something happened in this execution.
[compassionate_euler : chentex/random-logger] 2019-12-13T16:40:22+0000 DEBUG first loop completed.
[hopeful_darwin : chentex/random-logger] 2019-12-13T16:40:22+0000 ERROR something happened in this execution.
[brave_herschel : chentex/random-logger] 2019-12-13T16:40:22+0000 DEBUG first loop completed.
[great_nightingale : chentex/random-logger] 2019-12-13T16:40:23+0000 ERROR something happened in this execution.
[happy_brahmagupta : chentex/random-logger] 2019-12-13T16:40:23+0000 WARN variable not in use.
[compassionate_euler : chentex/random-logger] 2019-12-13T16:40:23+0000 INFO takes the value and converts it to string.
[stupefied_hopper : chentex/random-logger] 2019-12-13T16:40:23+0000 INFO takes the value and converts it to string.
[happy_brahmagupta : chentex/random-logger] 2019-12-13T16:40:24+0000 INFO takes the value and converts it to string.
[objective_mclaren : chentex/random-logger] 2019-12-13T16:40:25+0000 DEBUG first loop completed.
[hopeful_darwin : chentex/random-logger] 2019-12-13T16:40:25+0000 INFO takes the value and converts it to string.
[charming_ptolemy : chentex/random-logger] 2019-12-13T16:40:26+0000 DEBUG first loop completed.
[hopeful_matsumoto : chentex/random-logger] 2019-12-13T16:40:26+0000 INFO takes the value and converts it to string.
```This is a really tiny wrapper around the wonderful [mcollina/docker-loghose](https://github.com/mcollina/docker-loghose) so that I had something to get a really quick overview when running raw Docker instances.
It suports most of the major options that [mcollina/docker-loghose](https://github.com/mcollina/docker-loghose) does outside of log detaching and some advanced filtering.
``` sh
$ docker-logger --helpUsage: docker-logger [options]
Options:
-V, --version output the version number
--name-label The label to use to name containers with
--include-current Include current container logs
--match-image Only include logs matching image name regexes (default: [])
--match-name Only include logs matching container name regexes (default: [])
--skip-image Exclude logs matching image name regexes (default: [])
--skip-name Exclude logs matching container name regexes (default: [])
--add-labels Enrich log events with labels set on container.
--labels-match Only include labels matching regexes. Assumes --add-labels. (default: [])
-h, --help output usage information
```