how to see docker container logs with timezone
Docker294
description
Track and view the log content of the test container and the log output time
command
docker logs -f -t test
parameter
logs : Fetch the logs of a container -f, --follow : Follow log output -t, --timestamps : Show timestamps
result
2021-05-03T09:21:41.445320706Z 2021-05-03T09:21:41.445386266Z . ____ _ __ _ _ 2021-05-03T09:21:41.445392232Z /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ 2021-05-03T09:21:41.445396652Z ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ 2021-05-03T09:21:41.445400634Z \\/ ___)| |_)| | | | | || (_| | ) ) ) ) 2021-05-03T09:21:41.445404226Z ' |____| .__|_| |_|_| |_\__, | / / / / 2021-05-03T09:21:41.445407846Z =========|_|==============|___/=/_/_/_/ 2021-05-03T09:21:41.445411436Z :: Spring Boot :: (v2.4.3)