Question

App integration with logtail not show log level error as error

I have been experimenting with a basic app in Golang. I have added the logtail integration. I try to log on both errors and info, but the ERROR level gets converted to INFO, which sort of beats the purpose.

Today I reinitialized the PaperTrail integration and it demonstrates the same.

In addition I have evaluated both JSON and non-JSON logging without luck.

Is it possible to log errors in the documented/syslog way. Any pointers would be most welcome.

Example app: https://github.com/jonasbn/sample-golang


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Already an answer? I’m experiencing the same problem. Logtail shows all logs as info level instead of for example error.