RotherOSS / otobo-docker

OTOBO Docker and Docker Compose files.
GNU General Public License v3.0
32 stars 16 forks source link

Add tags to the Docker container logs #48

Closed bschmalhofer closed 3 years ago

bschmalhofer commented 3 years ago

Michael suggested this on the OTOBO Community Forum in the thread https://otobo.de/en/forums/topic/docker-logs-auf-lokalem-host-unter-centos8/. Adding tags to the logs written by the containers can be very useful. E.g. for configuring dedicated logfiles for each service. Michael suggests:


  # service db
   logging:
      options:
        tag: "otobo_db_1"
 # service web
    logging:
      options:
        tag: "otobo_web_1"

I would suggest to remove the '_1' as there can be multiple containers per service. IMHO this can be done already for OTOBO 10.0.10.

bschmalhofer commented 3 years ago

Tags for the syslog logging driver can be configured for the Docker daemon as a whole. Therefore I think that it is more confusing than helpful when the Docker Compose config files already define a logging tag. Rejecting this change.