mcollina / docker-loghose

Collect all the logs from all docker containers
MIT License
63 stars 15 forks source link

add opts.attachFilter #25

Closed megastef closed 6 years ago

megastef commented 6 years ago

Docker-Loghose performs Docker inspect calls and the info from the inspect call could be very useful to decide if logs from containers should be collected or not. Users could decide to collect logs from containers with specific labels or ENV settings etc. This PR adds an optional function "attachFilter" to Docker-Loghose options to implement a custom logic for filters.