Docker Community Forums

Share and learn in the Docker community.

Docker-compose logs captures only `info` level logs

docker-compose logs captures only info level logs. Is this a defect, or do we need to add any switch to the command to include other log-levels like ‘error’ ‘debug’ etc?

docker-compose logs -f {service_name} > {log_file_path}

I can see other level logs in the console after executing docker-compose up command. But, in order to save them to the disk, docker-compose logs if the only option which is not working.