DarthSim / overmind

Process manager for Procfile-based applications and tmux
MIT License
2.89k stars 82 forks source link

Ability to turn off the Logging Prefix #183

Open jmortlock opened 5 months ago

jmortlock commented 5 months ago

Hi

I am currently using overmind in a docker development setup where my application generates json logs and outputs them to a local grafana/loki setup so I can see whats going on. When i'm using overmind it will automatically prepend the process name before any log outputs which works great for STDOUT monitoring but not so much when i need json log messages.

Would it be possible to add another option to disable the log prefix entirely?

Envek commented 4 months ago

Generally speaking, I'm not sure why you would need Overmind when using Docker. There are Docker Compose and dip that makes development in Docker pretty close to Overmind experience.

jmortlock commented 4 months ago

Ignore the docker part; what I'm really interested in is keeping my logs in the format the application generates, which is JSON.

Overmind's manipulation of the logs whilst great if your using the terminal to view logs becomes a hindrance when trying to using a tool such as grafana/loki to work with the logs.

matheusb96 commented 1 month ago

I have a similar situation, I want to keep my logs to stdout just plain JSON but I'm not able to parse that correctly because of the prefix, since Procfile is the default for rails 7+ we still want to keep using that but it would be nice to have some way of set an option for the process names