question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to use log messages with spaces in docker

See original GitHub issue

This command works…

docker run --rm datalust/seqcli:latest log --message="{ReleaseName}inproject{ProjectName}successfullfor{ReleaseEnvironment}" \
--property=ReleaseName="Test" \
--property=ReleaseEnvironment="Test" \
--property=projectName="***" \
--property=Environment=PRODUCTION \
--property=Service="***" \
--level=Information \
--server=https://***/ \
--apikey=***

This one does not…

docker run --rm datalust/seqcli:latest log --message="{ReleaseName} in project {ProjectName} successfull for{ReleaseEnvironment}" \
--property=ReleaseName="Test" \
--property=ReleaseEnvironment="Test" \
--property=projectName="***" \
--property=Environment=PRODUCTION \
--property=Service="***" \
--level=Information \
--server=https://***/ \
--apikey=***

With the message Unrecognized options: in, project, {ProjectName}, successfull, for, {ReleaseEnvironment}

I’ve also tried using -m instead of --message, using ` instead of ", and removing quotes from properties.

Running on Ubuntu 18.04 with docker ce latest package version 5:18.09.6~3-0~ubuntu-bionic

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
nblumhardtcommented, Aug 22, 2019

The latest container image includes the fix, thanks all!

1reaction
nblumhardtcommented, Aug 19, 2019

Just going to reopen so we can track the progress of #111

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker container logs taking all my disk space
If you want to disable logs only for specific containers, you can start them with --log-driver=none in the docker run command. Another option ......
Read more >
Docker Desktop 3.3.3 does not show container log while ...
if I run "docker logs postgres" logging is shown. ... <container> / docker container logs <container> ) still work, or does that also...
Read more >
Configure logging drivers
When you start a container, you can configure it to use a different logging driver than the Docker daemon's default, using the --log-driver...
Read more >
Docker Logging: 101 Guide to Logs, Best Practices & More
Get started with Docker logging! Learn what container and daemon logs are and the best practices and strategies on how to view and...
Read more >
Writing and Managing Application Logs with Docker - Manning
Docker has a pluggable logging framework—you need to make sure your application logs are coming out from the container, and then Docker can ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found